Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/GLSL150/pssmCasterVp.glsl @ 12115

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

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

File size: 353 bytes
Line 
1#version 150
2
3out vec2 oDepth;
4uniform mat4 worldViewProjMatrix;
5in vec4 vertex;
6
7void main()
8{
9        // This is the view space position
10        gl_Position = worldViewProjMatrix * vertex;
11
12        // Depth info for the fragment.
13        oDepth.x = gl_Position.z;
14        oDepth.y = gl_Position.w;
15
16        // Clamp z to zero. seem to do the trick. :-/
17        //oPosition.z = max(oPosition.z, 0);
18}
Note: See TracBrowser for help on using the repository browser.