mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftLegends.git
synced 2026-10-22 13:22:20 +01:00
28 lines
516 B
Plaintext
28 lines
516 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;
|
|
float2 uv1 : TEXCOORD_1;
|
|
};
|
|
|
|
|
|
PS_Input main(in VS_Input VSInput)
|
|
{
|
|
PS_Input PSInput = (PS_Input)0;
|
|
|
|
PSInput.uv = VSInput.uv;
|
|
PSInput.uv.y += V_OFFSET;
|
|
PSInput.uv1 = VSInput.uv;
|
|
PSInput.uv1.y += V_BLEND_OFFSET;
|
|
|
|
PSInput.position = mul(WORLDVIEWPROJ, float4(VSInput.position, 1));
|
|
|
|
return PSInput;
|
|
} |