Handle loading error and placeholder shaders

This commit is contained in:
Simon Lübeß
2025-07-10 14:59:37 +02:00
parent 1b63c922da
commit c2d330fc8f
8 changed files with 192 additions and 56 deletions
@@ -0,0 +1,28 @@
#include "GlitchyEngine.hlsl"
struct VS_IN
{
float3 Position : POSITION;
};
struct PS_IN
{
float4 Position : SV_POSITION;
};
PS_IN VS(VS_IN input)
{
PS_IN output;
float4 worldPosition = mul(Transform, float4(input.Position, 1));
output.Position = mul(ViewProjection, worldPosition);
return output;
}
float4 PS(PS_IN input) : SV_TARGET
{
return float4(0, 1, 1, 1);
}
#pragma Effect[VS = VS; PS = PS]