mirror of https://github.com/godotengine/godot
Merge pull request #93343 from Chaosus/shader_fix_canvas_ubo
Fix ubo tag placement in canvas.glsl fragment shader
This commit is contained in:
commit
b75f0485ba
|
|
@ -346,14 +346,16 @@ uniform sampler2D color_texture; //texunit:0
|
||||||
|
|
||||||
layout(location = 0) out vec4 frag_color;
|
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
|
#ifdef MATERIAL_UNIFORMS_USED
|
||||||
layout(std140) uniform MaterialUniforms{
|
layout(std140) uniform MaterialUniforms{ //ubo:4
|
||||||
//ubo:4
|
|
||||||
|
|
||||||
#MATERIAL_UNIFORMS
|
#MATERIAL_UNIFORMS
|
||||||
|
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
/* clang-format on */
|
||||||
|
|
||||||
#GLOBALS
|
#GLOBALS
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue