source:
data/branches/Shader_HS18/programs/GLSL/DepthShadowmapCasterFp.glsl
Last change on this file was 12115, checked in by wiesep, 6 years ago | |
---|---|
File size: 256 bytes |
Line | |
---|---|
1 | #version 120 |
2 | |
3 | varying vec2 depth; |
4 | |
5 | void main() |
6 | { |
7 | float finalDepth = depth.x / depth.y; |
8 | |
9 | // just smear across all components |
10 | // therefore this one needs high individual channel precision |
11 | gl_FragColor = vec4(finalDepth, finalDepth, finalDepth, 1.0); |
12 | } |
13 |
Note: See TracBrowser
for help on using the repository browser.