Texture/shader sorting
Posted: Mon Jul 02, 2012 10:06 am
First off, sorry I can't post my scripts right now, as I wont be home for awhile.
I have run into a little problem.
I have water falling from a pipe over a walkway and into the sea.
If the player looks up, my glass shader in some of the grometry above is being drawn over the water. If the player looks at the water, my water shader is being drawn over the base of the waterfall and the splash sprites I created.
I guess it would be a lot easier if I could just post the shaders, but in the mean time is there any general advice on how to set up the waterfall script so it gets drawn ontop of everything else?
I have run into a little problem.
I have water falling from a pipe over a walkway and into the sea.
If the player looks up, my glass shader in some of the grometry above is being drawn over the water. If the player looks at the water, my water shader is being drawn over the base of the waterfall and the splash sprites I created.
I guess it would be a lot easier if I could just post the shaders, but in the mean time is there any general advice on how to set up the waterfall script so it gets drawn ontop of everything else?