Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Updated programs and adjusted Material to work with GLSL>150

File size: 481 bytes
Line 
1#version 100
2
3precision mediump int;
4precision mediump float;
5
6varying vec4 oUv0;
7
8attribute vec4 position;
9attribute vec4 uv0;
10
11uniform mat4 worldViewProj;
12uniform vec4 ambient;
13uniform vec4 objSpaceLight;
14uniform vec4 lightColour;
15uniform vec4 offset;
16
17void main()
18{           
19     // Position
20        vec4 mypos = position;
21        vec4 factor = vec4(1.0, 1.0, 1.0, 1.0) - uv0.yyyy;
22        mypos = mypos + offset * factor;
23        gl_Position = worldViewProj * mypos;
24    // Texture Coord
25        oUv0.xy = uv0.xy;
26}
Note: See TracBrowser for help on using the repository browser.