mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Add FreeType, progress to title screen
This commit is contained in:
24
ShaderSrc/DrawQuadV.hlsl
Normal file
24
ShaderSrc/DrawQuadV.hlsl
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "DrawQuad.h"
|
||||
|
||||
cbuffer SDrawQuadVertexConstants : register(b0)
|
||||
{
|
||||
float4 ndcOriginAndDimensions;
|
||||
float4 surfaceDimensions_Unused;
|
||||
};
|
||||
|
||||
struct SDrawQuadVertexInput
|
||||
{
|
||||
float2 posUV : POSITION;
|
||||
};
|
||||
|
||||
SDrawQuadPixelInput VSMain(SDrawQuadVertexInput input)
|
||||
{
|
||||
SDrawQuadPixelInput result;
|
||||
|
||||
float2 ndcPos = ndcOriginAndDimensions.xy + input.posUV.xy * ndcOriginAndDimensions.zw;
|
||||
|
||||
result.pos = float4(ndcPos.x, ndcPos.y, 0.0, 1.0);
|
||||
result.texCoord = input.posUV.xy * surfaceDimensions_Unused.xy;
|
||||
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user