mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftLegends.git
synced 2026-10-22 13:22:20 +01:00
26 lines
442 B
Plaintext
26 lines
442 B
Plaintext
#include "ShaderConstantsGNM.h"
|
|
|
|
struct VS_Input
|
|
{
|
|
float3 position : POSITION;
|
|
float2 uv : TEXCOORD_0;
|
|
};
|
|
|
|
|
|
struct PS_Input
|
|
{
|
|
float4 position : S_POSITION;
|
|
float2 uv : TEXCOORD_0;
|
|
};
|
|
|
|
|
|
PS_Input main( in VS_Input VSInput )
|
|
{
|
|
PS_Input PSInput = (PS_Input)0;
|
|
|
|
PSInput.uv = VSInput.uv;
|
|
float4 pos = mul(WORLDVIEW, float4(VSInput.position, 1));
|
|
PSInput.position = mul(PROJ, pos);
|
|
|
|
return PSInput;
|
|
} |