Back to home page

EIC code displayed by LXR

 
 

    


Warning, /eic-opticks/sysrap/gl/wireframe/vert.glsl is written in an unsupported language. File is not indexed.

0001 #version 410 core
0002 uniform mat4 MVP;
0003 
0004 in vec3 vNrm;
0005 in vec3 vPos;
0006 
0007 out vec4 v_color;
0008 
0009 void main()
0010 {
0011     gl_Position = MVP * vec4(vPos, 1.0);
0012 
0013     v_color = vec4( clamp( vNrm*0.5 + 0.8, 0.0, 1.0) , 1.0 );
0014 
0015     // vNrm     comps in range -1.->1.
0016     // 0.5*vNrm comps in range -0.5.->0.5
0017     // 0.5*(vNrm+1.)  comps in range 0.0->1.0
0018 
0019 }
0020 
0021 
0022