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
6b64ec7360
Saxum
/
Shader
/
depth.fsh
8 lines
92 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
Changing shadow map sampler from sampler2D to sampler2Dshadow and removing now useless colour texture.
2014-12-04 12:21:20 +00:00
out float fragmentDepth;
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() {
Changing shadow map sampler from sampler2D to sampler2Dshadow and removing now useless colour texture.
2014-12-04 12:21:20 +00:00
fragmentDepth = 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