Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Example/GLSL/DepthShadowmapCasterFp.glsl @ 12084

Last change on this file since 12084 was 12083, checked in by wiesep, 6 years ago

Reorganised shader programs

File size: 269 bytes
Line 
1#version 120
2
3varying vec2 depth;
4
5void 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.