Skip to content

Commit

Permalink
shaders: Implement editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Nov 15, 2015
1 parent 2b492bc commit 5023699
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cs/resources/shaders/gl/editor.vs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "common.h"

out gl_PerVertex { vec4 gl_Position; };

layout(location = POSITION) in float4 P;
layout(location = COLOR0) in float4 C;

layout(location = COLOR0) out float4 c0;

uniform float4 tfactor;
void main ()
{
gl_Position = mul (m_WVP, P); // xform, input in world coords
c0 = tfactor*C;
}

0 comments on commit 5023699

Please sign in to comment.