1
Support / Re: Cutout shader
« on: September 10, 2015, 08:15:27 am »
Thanks for the reply.
I am using an ortho camera. I have made a mockup of what my end goal would be.
There are 3 sprites on the image:
- the blue room, which should be visible through the window
- the transparent sprite with black outline (just for the mockup, invisible otherwise) which cuts through the wall exposing the room
- the brown wall which normally overlaps all the rooms
I have made some digging around and it seems that depth mask would be the one I need to achieve this, however I don't know how to use that either.
Could you please help me how to set this up (which sprite should use which shader) with tk2d? Thanks!
I am using an ortho camera. I have made a mockup of what my end goal would be.
There are 3 sprites on the image:
- the blue room, which should be visible through the window
- the transparent sprite with black outline (just for the mockup, invisible otherwise) which cuts through the wall exposing the room
- the brown wall which normally overlaps all the rooms
I have made some digging around and it seems that depth mask would be the one I need to achieve this, however I don't know how to use that either.
Could you please help me how to set this up (which sprite should use which shader) with tk2d? Thanks!