Initial commit

This commit is contained in:
Stillkill committed 2026-03-08 15:37:55 -05:00
commit bd6318027f
4937 files changed
+194287

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
#include "ShaderConstants.fxh"
struct VS_Input
{
float4 position : POSITION;
float4 color : COLOR;
#ifdef INSTANCEDSTEREO
uint instanceID : SV_InstanceID;
#endif
};
struct PS_Input
{
float4 position : SV_Position;
float4 color : COLOR;
};
void main( in VS_Input VSInput, out PS_Input PSInput )
{
PSInput.color = VSInput.color;
#ifdef INSTANCEDSTEREO
int i = VSInput.instanceID;
PSInput.position = mul( WORLDVIEWPROJ_STEREO[i], VSInput.position );
#else
PSInput.position = mul(WORLDVIEWPROJ, VSInput.position);
#endif
}