source:
data/branches/Shader_HS18/programs/Example/GLSL150/pssmCasterVp.glsl
@
12083
Last change on this file since 12083 was 12083, checked in by wiesep, 6 years ago | |
---|---|
File size: 371 bytes |
Line | |
---|---|
1 | #version 150 |
2 | |
3 | out vec2 oDepth; |
4 | uniform mat4 worldViewProjMatrix; |
5 | in vec4 vertex; |
6 | |
7 | void 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.