Skip to content

Commit

Permalink
shaders: Add GLSL port of effects.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Mar 13, 2016
1 parent 751a578 commit c341434
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
17 changes: 17 additions & 0 deletions res/gamedata/shaders/gl/effects_sun.vs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "common.h"
#include "iostructs\v_TL.h"

//////////////////////////////////////////////////////////////////////////////////////////
// Vertex
v2p_TL _main ( v_TL I )
{
v2p_TL O;

// O.HPos = I.P;
O.HPos = mul(m_VP, I.P); // xform, input in world coords
O.HPos.z = O.HPos.w;
O.Tex0 = I.Tex0;
O.Color = I.Color.bgra; // swizzle vertex colour

return O;
}
15 changes: 15 additions & 0 deletions res/gamedata/shaders/gl/effects_wallmark.vs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "common.h"
#include "iostructs\v_TL.h"

//////////////////////////////////////////////////////////////////////////////////////////
// Vertex
v2p_TL _main ( v_TL I )
{
v2p_TL O;

O.HPos = mul( m_VP, I.P );
O.Tex0 = I.Tex0;
O.Color = I.Color.bgra; // swizzle vertex colour

return O;
}

0 comments on commit c341434

Please sign in to comment.