Skip to content

Commit c153c5b

Browse files
committed
Moved uniform variables up so that they are available within the #GLOBAL scope
1 parent aa8d9b8 commit c153c5b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/gles3/shaders/scene.glsl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,10 @@ layout(std140) uniform MultiviewData { // ubo:8
974974
multiview_data;
975975
#endif
976976

977+
uniform highp mat4 world_transform;
978+
uniform highp uint instance_offset;
979+
uniform highp uint model_flags;
980+
977981
/* clang-format off */
978982

979983
#GLOBALS
@@ -1199,10 +1203,7 @@ ivec2 multiview_uv(ivec2 uv) {
11991203
}
12001204
#endif
12011205

1202-
uniform highp mat4 world_transform;
12031206
uniform mediump float opaque_prepass_threshold;
1204-
uniform highp uint model_flags;
1205-
uniform highp uint instance_offset;
12061207

12071208
#if defined(RENDER_MATERIAL)
12081209
layout(location = 0) out vec4 albedo_output_buffer;

0 commit comments

Comments
 (0)