light/Engine/res/Shaders/Texture/Texture_VS.hlsl
Light 033a3b1dd1 Shader files: hlsl & glsl
- Moved #define LT_ENGINE_RESOURCES_*_SHADER_* definitions to files
       * Note: This was done so for a gcc compilation error caused by R"()" string

- Removed test print fps in  'Application::GameLoop()'
2021-07-10 19:59:27 +04:30

19 lines
No EOL
367 B
HLSL

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