REVIEWED: Potential shader issues

This commit is contained in:
Ray
2025-01-12 20:39:07 +01:00
parent af163ba22a
commit fddfb58f85
5 changed files with 30 additions and 34 deletions

View File

@ -22,5 +22,5 @@ void main()
float depth = (2.0*zNear)/(zFar + zNear - z*(zFar - zNear));
// Calculate final fragment color
gl_FragColor = vec4(depth, depth, depth, 1.0f);
gl_FragColor = vec4(depth, depth, depth, 1.0);
}