[solved] priority rendering?

hi there,
got an issue between 2 transparent shaders:
I have a pool with some vegetation floating over (like water lily), the “water” shader is transparent and the vegetation is a plane with alpha, the problem is that the vegetation sometimes renders under the water (depending on camera orientation /or position)(see screenshot)


Should always render like (2)

How can I fix that?

ps: i’m not a coder so i’m really loosed in shaders programming

Thats a job for the render queue handling in the shaderlab shader.

if you download the builtin shaders, the vegetation and water shader are a good source to learn from

arg :confused:
So I’ll probably have problems to make it work.
Anyway thanks for the answer :slight_smile:

It’s really not that difficult. You just need to manually assign Render Queues to the the different Materials.

I’m looking into this,
Thank you :wink:

thank you both,
it was easy indeed :wink: