diff --git a/data/shader/depth.fsh b/data/shader/depth.fsh index 4e98194..55941b6 100644 --- a/data/shader/depth.fsh +++ b/data/shader/depth.fsh @@ -1,7 +1,5 @@ #version 150 -out float gl_FragDepth; - void main() { gl_FragDepth = gl_FragCoord.z; } diff --git a/data/shader/depth_cube.fsh b/data/shader/depth_cube.fsh index adf8a69..8042a49 100644 --- a/data/shader/depth_cube.fsh +++ b/data/shader/depth_cube.fsh @@ -4,8 +4,6 @@ in vec4 fragPosition; uniform float farPlane; -out float gl_FragDepth; - void main() { float nearPlane = 0.1; float A = -(farPlane+nearPlane)/(farPlane-nearPlane);