Last change
on this file since 12189 was
12115,
checked in by wiesep, 6 years ago
|
Changed folder structure, deletet some unused files and cleaned up code
|
File size:
444 bytes
|
Rev | Line | |
---|
[12115] | 1 | #version 150 |
---|
| 2 | |
---|
| 3 | in vec4 vertex; |
---|
| 4 | in vec4 normal; |
---|
| 5 | in vec4 uv0; |
---|
| 6 | in vec4 uv1; // pose1 |
---|
| 7 | in vec4 uv2; // pose2 |
---|
| 8 | |
---|
| 9 | out vec2 oUv; |
---|
| 10 | out vec4 colour; |
---|
| 11 | |
---|
| 12 | uniform mat4 worldViewProj; |
---|
| 13 | uniform vec4 anim_t; |
---|
| 14 | |
---|
| 15 | // hardware pose animation (no normals) |
---|
| 16 | void 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.