Watergit push!

This commit is contained in:
2025-09-07 21:15:00 +03:00
parent 92ec3e9497
commit d42cf2854a
11 changed files with 388 additions and 44 deletions

View File

@@ -9,6 +9,7 @@ IN(vec4 position, POSITION)
IN(vec3 positionWS, TEXCOORD0)
MAIN_DECLARATION
{
vec4 depth = vec4(length(positionWS - cameraPosition), 0.0, 0.0, 1.0);
gl_FragColor = depth;
highp float depth = length(positionWS - cameraPosition);
vec4 depthv = vec4(depth / 256.0, depth / 500.0, depth / 1000.0, 1.0);
gl_FragColor = depthv;
}