mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2024-12-18 12:41:51 +00:00
23 lines
511 B
HLSL
23 lines
511 B
HLSL
struct Input {
|
|
float4x4 transform;
|
|
float2 translation;
|
|
};
|
|
|
|
[[vk::push_constant]]
|
|
ConstantBuffer<Input> gInput : register(b0, space0);
|
|
|
|
void VSMain(
|
|
in float2 iPosition : POSITION,
|
|
in float4 iColor : COLOR,
|
|
in float2 iUV : TEXCOORD,
|
|
out float4 oColor : COLOR,
|
|
out float2 oUV : TEXCOORD,
|
|
out float4 oPosition : SV_Position
|
|
)
|
|
{
|
|
float2 translatedPos = iPosition + gInput.translation;
|
|
oPosition = mul(gInput.transform, float4(translatedPos, 0, 1));
|
|
|
|
oColor = iColor;
|
|
oUV = iUV;
|
|
}
|