source:
data/branches/Shader_HS18/programs/Example/GLSL150/HardwareMorphAnimationVp.glsl
@
12083
Last change on this file since 12083 was 12083, checked in by wiesep, 6 years ago | |
---|---|
File size: 420 bytes |
Line | |
---|---|
1 | #version 150 |
2 | |
3 | in vec4 vertex; |
4 | in vec4 normal; |
5 | in vec4 uv0; |
6 | in vec4 uv1; // pos2 |
7 | |
8 | out vec2 oUv; |
9 | out vec4 colour; |
10 | |
11 | uniform mat4 worldViewProj; |
12 | uniform vec4 anim_t; |
13 | |
14 | // hardware morph animation (no normals) |
15 | void 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.