- Timestamp:
- Nov 9, 2018, 1:06:05 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/Shader_HS18/programs/Example/GLSL150/StdQuad_vp.glsl
r12083 r12091 2 2 3 3 in vec4 vertex; 4 in vec2 uv0;4 // in vec2 uv0; 5 5 uniform mat4 worldViewProj; 6 6 7 7 out vec2 oUv0; 8 8 9 void main() 9 void main() 10 10 { 11 gl_Position = worldViewProj * vertex; 12 13 oUv0 = uv0; 11 gl_Position = worldViewProj * vertex; 12 13 // oUv0 = uv0; 14 15 vec2 inPos = sign(vertex.xy); 16 17 oUv0 = (vec2(inPos.x, -inPos.y) + 1.0) * 0.5; 14 18 } 15
Note: See TracChangeset
for help on using the changeset viewer.