summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuri Rubinsky <chaosus89@gmail.com>2024-06-19 12:50:57 +0300
committerYuri Rubinsky <chaosus89@gmail.com>2024-06-19 12:52:52 +0300
commit8ad878f06b70a6968c96d5443934b6b39d164e1a (patch)
tree5856a463b6a1a809586111c9bf4e0d0cd7ceab12
parent9a4942f2f59af3c9a17187e0ed20ffa40d5f9514 (diff)
downloadredot-engine-8ad878f06b70a6968c96d5443934b6b39d164e1a.tar.gz
Fix ubo tag placement in canvas.glsl gles3 fragment shader
-rw-r--r--drivers/gles3/shaders/canvas.glsl6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gles3/shaders/canvas.glsl b/drivers/gles3/shaders/canvas.glsl
index 65332c06be..4eb6f62482 100644
--- a/drivers/gles3/shaders/canvas.glsl
+++ b/drivers/gles3/shaders/canvas.glsl
@@ -346,14 +346,16 @@ uniform sampler2D color_texture; //texunit:0
layout(location = 0) out vec4 frag_color;
+/* clang-format off */
+// This needs to be outside clang-format so the ubo comment is in the right place
#ifdef MATERIAL_UNIFORMS_USED
-layout(std140) uniform MaterialUniforms{
-//ubo:4
+layout(std140) uniform MaterialUniforms{ //ubo:4
#MATERIAL_UNIFORMS
};
#endif
+/* clang-format on */
#GLOBALS