Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Example/GLSLES/HardwareMorphAnimationVp.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: 482 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; // pos2
10
11varying vec2 oUv;
12varying vec4 colour;
13
14uniform mat4 worldViewProj;
15uniform vec4 anim_t;
16
17// hardware morph animation (no normals)
18void main()
19{
20        // interpolate
21        vec4 interp = vec4(vertex.xyz + anim_t.x*(uv1.xyz - vertex.xyz), 1.0);
22       
23        gl_Position = worldViewProj * interp;
24        oUv = uv0.xy;
25        colour = vec4(1.0,0.0,0.0,1.0);
26}
Note: See TracBrowser for help on using the repository browser.