Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/GLSL/DepthShadowmapCasterVp.glsl

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

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

File size: 288 bytes
Line 
1#version 120
2
3uniform mat4 worldViewProj;
4uniform vec4 texelOffsets;
5
6attribute vec4 vertex;
7
8varying vec2 depth;
9
10void main()
11{
12        vec4 outPos = worldViewProj * vertex;
13        outPos.xy += texelOffsets.zw * outPos.w;
14        // fix pixel / texel alignment
15        depth = outPos.zw;
16        gl_Position = outPos;
17}
18
Note: See TracBrowser for help on using the repository browser.