Skip to content

Commit

Permalink
shaders: Add GLSL port of simple.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Mar 7, 2016
1 parent aec32fc commit 069233f
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 11 deletions.
11 changes: 0 additions & 11 deletions res/gamedata/shaders/gl/iostructs/p_portal.h

This file was deleted.

19 changes: 19 additions & 0 deletions res/gamedata/shaders/gl/iostructs/p_simple.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

out vec4 SV_Target;

struct v2p
{
float2 tc0 ; // TEXCOORD0; // base
};

layout(location = TEXCOORD0) in float4 p_simple_tc0 ; // TEXCOORD0; // base

float4 _main ( v2p I );

void main()
{
v2p I;
I.tc0 = p_simple_tc0;

SV_Target = _main ( I );
}
11 changes: 11 additions & 0 deletions res/gamedata/shaders/gl/iostructs/p_simple_color.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

out vec4 SV_Target;

layout(location = COLOR0) in float4 p_simple_C ; // COLOR0;

float4 _main ( float4 C );

void main()
{
SV_Target = _main ( p_simple_C );
}
Binary file modified res/gamedata/shaders/gl/portal.ps
Binary file not shown.
Binary file added res/gamedata/shaders/gl/simple.ps
Binary file not shown.
Binary file added res/gamedata/shaders/gl/simple_color.ps
Binary file not shown.

0 comments on commit 069233f

Please sign in to comment.