Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Example/GLSL150/DepthShadowmapCasterFp.glsl @ 12083

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

Reorganised shader programs

File size: 379 bytes
Line 
1#version 150
2
3in vec2 depth;
4//out vec4 fragColour;
5
6void main()
7{
8#if LINEAR_RANGE
9        float finalDepth = depth.x;
10#else
11        float finalDepth = depth.x;// / depth.y;
12#endif
13        // just smear across all components
14        // therefore this one needs high individual channel precision
15//      fragColour = vec4(finalDepth, finalDepth, finalDepth, 1);
16        gl_FragDepth = finalDepth;
17}
18
Note: See TracBrowser for help on using the repository browser.