Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/data_extern/programs/GLSL150/StdQuad_vp.glsl @ 12302

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

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

File size: 255 bytes
Line 
1#version 150
2
3in vec4 vertex;
4// in vec2 uv0;
5uniform mat4 worldViewProj;
6
7out vec2 oUv0;
8
9void main()
10{
11    gl_Position = worldViewProj * vertex;
12
13    // oUv0 = uv0;
14
15    vec2 inPos = sign(vertex.xy);
16
17    oUv0 = (vec2(inPos.x, -inPos.y) + 1.0) * 0.5;
18}
Note: See TracBrowser for help on using the repository browser.