Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Example/GLSL150/StdQuad_Tex3_vp.glsl @ 12083

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

Reorganised shader programs

File size: 433 bytes
Line 
1#version 150
2
3uniform mat4 worldViewProj;
4in vec4 vertex;
5in vec2 uv0;
6out vec2 oUv0;
7out vec2 oUv1;
8out vec2 oUv2;
9out vec4 pos;
10
11void main()
12{
13        // Use standardise transform, so work accord with render system specific (RS depth, requires texture flipping, etc)
14    gl_Position = worldViewProj * vertex;
15
16
17    // Convert to image-space
18    oUv0 = uv0;
19    oUv1 = oUv0;
20    oUv2 = oUv0;
21    pos = gl_Position;
22}
Note: See TracBrowser for help on using the repository browser.