[Community Project] WIP Weather & Water Shader

Ok,…2 more issues rendering related. In the image below the biggest one is that is seems that the mask for the foam is being calculated as a depth calculation similar to the way depth-fade is calculated. has a very obvious flaw in its approach. as you can see the foam clips when it extends beyond the object. approach will work fine for a shoreline but fails for anything that doesn’t extend beyond the foam itself.

The mask for objects breaking the surface of the should be and AO based approach.

The second and I’m not sure what one is but I know it has something to do with Depth fade… it appears that The depth fade calculation is somehow clipping you specular in the material causing it to mask out objects that are under the surface. seems to only apply to mesh objects and not BSP or landscapes.