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:
@@ -202,7 +202,7 @@ void main()
|
||||
lightDistance = lightDistance / far_plane;
|
||||
|
||||
// Write this as modified depth
|
||||
gl_FragDepth = gl_FragCoord.z;
|
||||
gl_FragDepth = lightDistance;
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user