Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Example/GLSLES/StdQuad_Tex4_vp.glsles @ 12091

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

Updated programs and adjusted Material to work with GLSL>150

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