Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Example/GLSLES/HardwarePoseAnimationVp.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: 518 bytes
Line 
1#version 100
2
3precision mediump int;
4precision mediump float;
5
6attribute vec4 vertex;
7attribute vec4 normal;
8attribute vec4 uv0;
9attribute vec4 uv1; // pose1
10attribute vec4 uv2; // pose2
11
12varying vec2 oUv;
13varying vec4 colour;
14
15uniform mat4 worldViewProj;
16uniform vec4 anim_t;
17
18// hardware pose animation (no normals)
19void main()
20{
21        // interpolate
22    vec4 interp = vec4(vertex.xyz + anim_t.x*uv1.xyz + anim_t.y*uv2.xyz, 1.0);
23
24        gl_Position = worldViewProj * interp;
25        oUv = uv0.xy;
26        colour = vec4(1.0,0.0,0.0,1.0);
27}
28
Note: See TracBrowser for help on using the repository browser.