Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/data_extern/programs/GLSL150/DepthShadowmapCasterFp.glsl @ 12202

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

Changed folder structure, deletet some unused files and cleaned up code

File size: 361 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.