Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Example/GLSL120/StdQuad_Tex4_vp.glsl @ 12096

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

Updated programs and adjusted Material to work with GLSL>150

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