Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

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

File size: 361 bytes
RevLine 
[12115]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.