2D Toolkit Forum
2D Toolkit => Support => Topic started by: Afro-Ninja on September 02, 2013, 04:14:52 am
-
I don't have unity pro but one of the reasons I would like to get it is for the image effects, especially sunshafts:
http://docs.unity3d.com/Documentation/Components/script-SunShafts.html
will these shafts show correctly through a bitmap image? like if I have a bitmap of trees and the top section is transparent, would the light beams show through correctly?
-
Hi,
We've just had a play around with this here in the office. Whilst it worked okay on 3d objects it didn't really work at all on 2d sprites, so I wouldn't recommend shelling out for a pro license just to use sun shafts with 2d toolkit.
-
ok, gotcha.
do you think it would be possible to create some basic 3d geometry to act as the edges, and then use a shader to turn the geometry invisible?
I'm not sure if it's possible to get the shafts to show through a transparent object correctly.
thanks!
-
Possibly. It works fine with solid 3D geometry, just not very well at all when not using the depth bffer.
-
What about with sprites that write to the depth buffer, like clip shader?
-
Its a lot better when it writes to the depth buffer.