Whether to write the water surface depth to the depth texture.
The water surface writes to the depth buffer, but Unity does not copy it to the depth texture for post-processing effects like Depth of Field (or refraction). This will copy the depth buffer to the depth texture. If the water injection point is in the transparent pass, be wary that it will include all transparent objects that write to depth. Furthermore, other third parties may already be doing this, and we do not check whether it is necessary to copy or not. This feature has a considerable overhead if using the built-in render pipeline, as it requires rendering the surface depth another time.
Declaration¶
public bool WriteToDepthTexture { get; set; }