source:
data/branches/Shader_HS18/programs/Example/GLSL/DepthShadowmapCasterFp.glsl
@
12083
Last change on this file since 12083 was 12083, checked in by wiesep, 6 years ago | |
---|---|
File size: 269 bytes |
Rev | Line | |
---|---|---|
[12083] | 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.