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:
429 bytes
|
Line | |
---|
1 | #version 100 |
---|
2 | |
---|
3 | precision mediump int; |
---|
4 | precision mediump float; |
---|
5 | |
---|
6 | uniform mat4 worldViewProj; |
---|
7 | attribute vec4 vertex; |
---|
8 | attribute vec2 uv0; |
---|
9 | varying vec2 oUv0; |
---|
10 | varying vec2 oUv1; |
---|
11 | varying vec4 pos; |
---|
12 | |
---|
13 | void main() |
---|
14 | { |
---|
15 | // Use standardise transform, so work accord with render system specific (RS depth, requires texture flipping, etc) |
---|
16 | gl_Position = worldViewProj * vertex; |
---|
17 | |
---|
18 | oUv0 = uv0; |
---|
19 | oUv1 = -vertex.xy; |
---|
20 | pos = gl_Position; |
---|
21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.