Crest Water
Open the Ocean.shader file. Then find the blue line and add the yellow code.
Cull [_CullMode] Stencil { Ref 221 Comp Always Pass Replace }
#include "Lighting.cginc" #include "Packages/com.distantlands.cozy.core/Runtime/Shaders/Includes/StylizedFogIncludes.cginc"
If you are using BiRP, replace this line with
#include "Packages/com.distantlands.cozy.core/Runtime/Shaders/Includes/StylizedFogNoVariationIncludes.cginc"
if (!underwater) {
//UNITY_APPLY_FOG(input.fogCoord, col); col = BlendStylizedFog(input.worldPos, half4(col.xyz, 1)); }
Last updated
Was this helpful?