Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/data_extern/programs/GLSL/DepthShadowmapCasterVp.glsl @ 12319

Last change on this file since 12319 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.