Pro asset Water Daytime + wiki DepthMask shader ?

 
Post new topic   Reply to topic    Unity Community Index // ShaderLab
View previous topic :: View next topic  
Author Message
BruceWayne



Joined: 21 Oct 2008
Posts: 41

PostPosted: Sat Nov 07, 2009 9:44 pm    Post subject: Pro asset Water Daytime + wiki DepthMask shader ? Reply with quote
Hi everyone,

I'm trying to use the DepthMask shader from the wiki (http://www.unifycommunity.com/wiki/index.php?title=DepthMask) with the Daytime Water of the Pro standard asset. Is there any simple possibility ?

I tried to add a secondary shader on the water mesh but, as I dont know shader language, it seems that the DepthMask shader uses a "Queue" to reorder the passes...

Can somedy already did it or could help me please ?

Thanks Smile
Back to top
View user's profile Send private message
Daniel Brauer



Joined: 11 Aug 2006
Posts: 1049
Location: GMA950

PostPosted: Sun Nov 08, 2009 4:12 am    Post subject: Reply with quote
You can change a material's render queue without editing the shader. Just set the water to a queue that renders after the depth mask.
Back to top
View user's profile Send private message MSN Messenger
BruceWayne



Joined: 21 Oct 2008
Posts: 41

PostPosted: Sun Nov 08, 2009 8:49 pm    Post subject: Reply with quote
Thank you, i'll try it asap !
Back to top
View user's profile Send private message
BruceWayne



Joined: 21 Oct 2008
Posts: 41

PostPosted: Tue Nov 10, 2009 12:42 pm    Post subject: Reply with quote
Now it works Smile

Many thanks !
Back to top
View user's profile Send private message
Post new topic   Reply to topic    Unity Community Index // ShaderLab All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum