mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftLegends.git
synced 2026-10-22 13:22:20 +01:00
23 lines
413 B
Plaintext
23 lines
413 B
Plaintext
#include "ShaderConstantsGNM.h"
|
|
|
|
struct VS_Input
|
|
{
|
|
float3 position : POSITION;
|
|
};
|
|
|
|
struct PS_Input
|
|
{
|
|
float4 position : S_POSITION;
|
|
};
|
|
|
|
PS_Input main( in VS_Input VSInput )
|
|
{
|
|
PS_Input PSInput;
|
|
PSInput.position = mul(WORLDVIEWPROJ, float4(VSInput.position, 1));
|
|
|
|
//this is to make it come closer to the camera and avoid z-fighting
|
|
PSInput.position.z -= 0.0001;
|
|
|
|
return PSInput;
|
|
}
|