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:
481 bytes
|
Line | |
---|
1 | #version 100 |
---|
2 | |
---|
3 | precision mediump int; |
---|
4 | precision mediump float; |
---|
5 | |
---|
6 | varying vec4 oUv0; |
---|
7 | |
---|
8 | attribute vec4 position; |
---|
9 | attribute vec4 uv0; |
---|
10 | |
---|
11 | uniform mat4 worldViewProj; |
---|
12 | uniform vec4 ambient; |
---|
13 | uniform vec4 objSpaceLight; |
---|
14 | uniform vec4 lightColour; |
---|
15 | uniform vec4 offset; |
---|
16 | |
---|
17 | void main() |
---|
18 | { |
---|
19 | // Position |
---|
20 | vec4 mypos = position; |
---|
21 | vec4 factor = vec4(1.0, 1.0, 1.0, 1.0) - uv0.yyyy; |
---|
22 | mypos = mypos + offset * factor; |
---|
23 | gl_Position = worldViewProj * mypos; |
---|
24 | // Texture Coord |
---|
25 | oUv0.xy = uv0.xy; |
---|
26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.