Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/GLSL150/GrassTexVp.glsl @ 12115

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

Changed folder structure, deletet some unused files and cleaned up code

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