|
Last change
on this file since 12091 was
12091,
checked in by wiesep, 7 years ago
|
|
Updated programs and adjusted Material to work with GLSL>150
|
|
File size:
482 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; // pos2 |
|---|
| 10 | |
|---|
| 11 | varying vec2 oUv; |
|---|
| 12 | varying vec4 colour; |
|---|
| 13 | |
|---|
| 14 | uniform mat4 worldViewProj; |
|---|
| 15 | uniform vec4 anim_t; |
|---|
| 16 | |
|---|
| 17 | // hardware morph animation (no normals) |
|---|
| 18 | void 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.