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 | |
---|
3 | precision mediump int; |
---|
4 | precision mediump float; |
---|
5 | |
---|
6 | attribute vec4 vertex; |
---|
7 | attribute vec4 normal; |
---|
8 | attribute vec4 uv0; |
---|
9 | attribute vec4 uv1; // pose1 |
---|
10 | attribute vec4 uv2; // pose2 |
---|
11 | |
---|
12 | varying vec2 oUv; |
---|
13 | varying vec4 colour; |
---|
14 | |
---|
15 | uniform mat4 worldViewProj; |
---|
16 | uniform vec4 anim_t; |
---|
17 | |
---|
18 | // hardware pose animation (no normals) |
---|
19 | void 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.