From f7e05555fb4ff6d8e51bdb5734db4dab1841d593 Mon Sep 17 00:00:00 2001 From: hachem Date: Wed, 19 Aug 2026 02:02:20 +0200 Subject: [feat]: migrate to slang from glsl --- src/Platform/OpenGL/OpenGLShader.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Platform/OpenGL/OpenGLShader.h') diff --git a/src/Platform/OpenGL/OpenGLShader.h b/src/Platform/OpenGL/OpenGLShader.h index 72d1d6e..4b63597 100644 --- a/src/Platform/OpenGL/OpenGLShader.h +++ b/src/Platform/OpenGL/OpenGLShader.h @@ -50,5 +50,9 @@ namespace Donut private: uint32_t m_RendererID = 0; std::string m_Name; + // True when loaded from a Slang-compiled GLSL. Slang expects row-major + // matrix data, so matrix uniforms are transposed on upload (glm is + // column-major) to keep all matrix math correct. + bool m_IsSlang = false; }; }; -- cgit v1.3