Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Example/GLSLES/StdQuad_Tex3_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: 489 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 vec4 pos;
13
14void main()
15{
16        // Use standardise transform, so work accord with render system specific (RS depth, requires texture flipping, etc)
17    gl_Position = worldViewProj * vertex;
18
19    // Convert to image-space
20    oUv0 = uv0;
21    oUv1 = oUv0;
22    oUv2 = oUv0;
23    pos = gl_Position;
24}
Note: See TracBrowser for help on using the repository browser.