Skip to content

Commit c341434

Browse files
committed
shaders: Add GLSL port of effects.
1 parent 751a578 commit c341434

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include "common.h"
2+
#include "iostructs\v_TL.h"
3+
4+
//////////////////////////////////////////////////////////////////////////////////////////
5+
// Vertex
6+
v2p_TL _main ( v_TL I )
7+
{
8+
v2p_TL O;
9+
10+
// O.HPos = I.P;
11+
O.HPos = mul(m_VP, I.P); // xform, input in world coords
12+
O.HPos.z = O.HPos.w;
13+
O.Tex0 = I.Tex0;
14+
O.Color = I.Color.bgra; // swizzle vertex colour
15+
16+
return O;
17+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include "common.h"
2+
#include "iostructs\v_TL.h"
3+
4+
//////////////////////////////////////////////////////////////////////////////////////////
5+
// Vertex
6+
v2p_TL _main ( v_TL I )
7+
{
8+
v2p_TL O;
9+
10+
O.HPos = mul( m_VP, I.P );
11+
O.Tex0 = I.Tex0;
12+
O.Color = I.Color.bgra; // swizzle vertex colour
13+
14+
return O;
15+
}

0 commit comments

Comments
 (0)