Watergit push!
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user