From f85f5afc5a4a50c5c87a236bc76f8a08d50e7137 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 16 Sep 2026 12:42:45 +0200 Subject: fix(engine): make textures not flipped --- engine/res/imgui_shader.slang | 2 +- engine/res/main_3d_shader.slang | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/res') diff --git a/engine/res/imgui_shader.slang b/engine/res/imgui_shader.slang index 29ad9bf..0277226 100644 --- a/engine/res/imgui_shader.slang +++ b/engine/res/imgui_shader.slang @@ -2,7 +2,7 @@ struct Vertex { float3 pos : STD_POSITION; float4 color : STD_COLOR; - float2 texture_coords : STD_UV; + float2 texture_coords : STD_UV_FROM_TOP_LEFT; }; struct VertexData diff --git a/engine/res/main_3d_shader.slang b/engine/res/main_3d_shader.slang index 7da164c..d1a1ef3 100644 --- a/engine/res/main_3d_shader.slang +++ b/engine/res/main_3d_shader.slang @@ -225,7 +225,7 @@ struct VertexStageOutput struct Vertex { float3 pos : STD_POSITION; - float2 texture_coords : STD_UV; + float2 texture_coords : STD_UV_FROM_TOP_LEFT; float3 normal : STD_NORMAL; }; -- cgit v1.2.3-18-g5258