Author Topic: Put square Photo inside circle photo is possible?  (Read 1427 times)

Magic Frame

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
Put square Photo inside circle photo is possible?
« on: August 29, 2014, 06:13:06 AM »
Hi all,

It is possible to do something like what I show in the example photo?

thanks

BeShifty

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 7
  • Posts: 52
    • View Profile
Re: Put square Photo inside circle photo is possible?
« Reply #1 on: August 29, 2014, 01:26:58 PM »
There are 2 things happening in your example: A texture mask, and a second texture layered on top.

Masking a texture with another texture is possible if you write a custom shader for it. Basically you read the color of the main texture normally, then multiply its alpha by the alpha (or greyscale value) of the second texture.