Is there a way to modify the information written into the scene depth buffer by an opaque object?

Hi,

I’m experimenting with an idea for faking translucent water by creating a virtual plane and modifying materials where they intersect with it.

For this to work however I will need to be able to change what gets written into the scene depth buffer for calculating things like reflections.

Is it possible to modify the scene depth information with a material?

-James

No, it is not possible to do that in material alone.
However, you can disable depth test on your water material, and perform depth test manually with custom depth buffer. That is only doable, if the water material is translucent though.