This website requires JavaScript.
Explore
Help
Sign In
faerbit
/
Saxum
Watch
1
Star
0
Fork
0
You've already forked Saxum
Code
Issues
1
Pull Requests
Projects
Releases
2
Wiki
Activity
a56907a956
Saxum
/
data
/
shader
/
depth.fsh
8 lines
90 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Implemented basic shadows for sun light. Also fixed bug with far plane always staying the same.
2014-12-04 00:13:59 +00:00
#version 150
Changed how depth values are written. Works even less than before.
2015-02-02 18:58:16 +00:00
out float gl_FragDepth;
Implemented basic shadows for sun light. Also fixed bug with far plane always staying the same.
2014-12-04 00:13:59 +00:00
void main() {
Fixed directional shadows.
2015-02-09 23:27:13 +00:00
gl_FragDepth = gl_FragCoord.z;
Implemented basic shadows for sun light. Also fixed bug with far plane always staying the same.
2014-12-04 00:13:59 +00:00
}
Reference in New Issue
Copy Permalink