Last change
on this file since 12202 was
12115,
checked in by wiesep, 6 years ago
|
Changed folder structure, deletet some unused files and cleaned up code
|
File size:
414 bytes
|
Line | |
---|
1 | #version 150 |
---|
2 | |
---|
3 | out vec4 oUv0; |
---|
4 | |
---|
5 | in vec4 position; |
---|
6 | in vec4 uv0; |
---|
7 | |
---|
8 | uniform mat4 worldViewProj; |
---|
9 | uniform vec4 ambient; |
---|
10 | uniform vec4 objSpaceLight; |
---|
11 | uniform vec4 lightColour; |
---|
12 | uniform vec4 offset; |
---|
13 | |
---|
14 | void main() |
---|
15 | { |
---|
16 | // Position |
---|
17 | vec4 mypos = position; |
---|
18 | vec4 factor = vec4(1.0, 1.0, 1.0, 1.0) - uv0.yyyy; |
---|
19 | mypos = mypos + offset * factor; |
---|
20 | gl_Position = worldViewProj * mypos; |
---|
21 | // Texture Coord |
---|
22 | oUv0.xy = uv0.xy; |
---|
23 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.