Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/GLSL150/HardwarePoseAnimationVp.glsl @ 12373

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

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

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