Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 9, 2018, 1:06:05 PM (5 years ago)
Author:
wiesep
Message:

Updated programs and adjusted Material to work with GLSL>150

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/branches/Shader_HS18/programs/Example/GLSL150/StdQuad_vp.glsl

    r12083 r12091  
    22
    33in vec4 vertex;
    4 in vec2 uv0;
     4// in vec2 uv0;
    55uniform mat4 worldViewProj;
    66
    77out vec2 oUv0;
    88
    9 void main()                   
     9void main()
    1010{
    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;
    1418}
    15 
Note: See TracChangeset for help on using the changeset viewer.