light/Engine/res/Shaders/TintedTexture/TintedTexture_VS.hlsl
Light 367bce3596 TintedTextureRendererProgram
- I want to die, please just kill me and end my fucking suffering....
2021-08-05 21:24:20 +04:30

21 lines
No EOL
424 B
HLSL

struct VertexOut
{
float2 TexChoord : TEXCOORD;
float4 Tint : TINT;
float4 Position : SV_Position;
};
cbuffer cb_ViewProjection : register(b0)
{
row_major matrix viewProjection;
}
VertexOut main(float4 InPosition : POSITION, float4 InTint : TINT,float2 InTexChoord : TEXCOORD)
{
VertexOut vso;
vso.Position = mul(float4(InPosition), viewProjection);
vso.Tint = InTint;
vso.TexChoord = InTexChoord;
return vso;
}