Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/data_extern/programs/GLSL150/HardwareMorphAnimationVp.glsl @ 12202

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

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

File size: 408 bytes
Line 
1#version 150
2
3in vec4 vertex;
4in vec4 normal;
5in vec4 uv0;
6in vec4 uv1; // pos2
7
8// out vec2 oUv;
9out vec4 colour;
10
11uniform mat4 worldViewProj;
12uniform vec4 anim_t;
13
14// hardware morph animation (no normals)
15void main()
16{
17        // interpolate
18        vec4 interp = vec4(vertex.xyz + anim_t.x * (uv1.xyz - vertex.xyz), 1.0);
19       
20        gl_Position = worldViewProj * interp;
21        // oUv = uv0.xy;
22        colour = vec4(1.0, 0.0, 0.0, 1.0);
23}
Note: See TracBrowser for help on using the repository browser.