Removing out gl_FragDepth as nvidia driver complains about it.
This commit is contained in:
parent
45d969c16e
commit
3b25514233
@ -1,7 +1,5 @@
|
|||||||
#version 150
|
#version 150
|
||||||
|
|
||||||
out float gl_FragDepth;
|
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
gl_FragDepth = gl_FragCoord.z;
|
gl_FragDepth = gl_FragCoord.z;
|
||||||
}
|
}
|
||||||
|
@ -4,8 +4,6 @@ in vec4 fragPosition;
|
|||||||
|
|
||||||
uniform float farPlane;
|
uniform float farPlane;
|
||||||
|
|
||||||
out float gl_FragDepth;
|
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
float nearPlane = 0.1;
|
float nearPlane = 0.1;
|
||||||
float A = -(farPlane+nearPlane)/(farPlane-nearPlane);
|
float A = -(farPlane+nearPlane)/(farPlane-nearPlane);
|
||||||
|
Loading…
Reference in New Issue
Block a user