Skip to content

Commit 069233f

Browse files
committed
shaders: Add GLSL port of simple.
1 parent aec32fc commit 069233f

File tree

6 files changed

+30
-11
lines changed

6 files changed

+30
-11
lines changed

res/gamedata/shaders/gl/iostructs/p_portal.h

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
out vec4 SV_Target;
3+
4+
struct v2p
5+
{
6+
float2 tc0 ; // TEXCOORD0; // base
7+
};
8+
9+
layout(location = TEXCOORD0) in float4 p_simple_tc0 ; // TEXCOORD0; // base
10+
11+
float4 _main ( v2p I );
12+
13+
void main()
14+
{
15+
v2p I;
16+
I.tc0 = p_simple_tc0;
17+
18+
SV_Target = _main ( I );
19+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
out vec4 SV_Target;
3+
4+
layout(location = COLOR0) in float4 p_simple_C ; // COLOR0;
5+
6+
float4 _main ( float4 C );
7+
8+
void main()
9+
{
10+
SV_Target = _main ( p_simple_C );
11+
}

res/gamedata/shaders/gl/portal.ps

6 Bytes
Binary file not shown.

res/gamedata/shaders/gl/simple.ps

322 Bytes
Binary file not shown.
99 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)