1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-23 04:35:28 +08:00

code tiny error

This commit is contained in:
JiangMuWen
2017-02-04 21:30:02 +08:00
committed by GitHub
parent ae090683d4
commit cf735a322b

View File

@@ -202,7 +202,7 @@ void main()
lightDistance = lightDistance / far_plane;
// Write this as modified depth
gl_FragDepth = gl_FragCoord.z;
gl_FragDepth = lightDistance;
}
```