diff options
| author | HampusM <hampus@hampusmat.com> | 2026-09-16 12:42:45 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-09-16 12:42:45 +0200 |
| commit | f85f5afc5a4a50c5c87a236bc76f8a08d50e7137 (patch) | |
| tree | 335f55580ec706cd00ee937995355252b3304dfd /engine/res | |
| parent | edd3261058c3417cf04f95dbfbc51a64e35426aa (diff) | |
fix(engine): make textures not flipped
Diffstat (limited to 'engine/res')
| -rw-r--r-- | engine/res/imgui_shader.slang | 2 | ||||
| -rw-r--r-- | engine/res/main_3d_shader.slang | 2 |
2 files changed, 2 insertions, 2 deletions
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; }; |
