Skip to content

Commit

Permalink
Merge pull request #83400 from bitsawer/fix_mobile_instance_uniforms
Browse files Browse the repository at this point in the history
Fix Mobile renderer shader instance uniform access
  • Loading branch information
akien-mga committed Oct 16, 2023
2 parents bb83995 + f0a178c commit 842c1ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ void SceneShaderForwardMobile::init(const String p_defines) {
actions.default_filter = ShaderLanguage::FILTER_LINEAR_MIPMAP;
actions.default_repeat = ShaderLanguage::REPEAT_ENABLE;
actions.global_buffer_array_variable = "global_shader_uniforms.data";
actions.instance_uniform_index_variable = "instances.data[instance_index].instance_uniforms_ofs";
actions.instance_uniform_index_variable = "instances.data[draw_call.instance_index].instance_uniforms_ofs";

actions.apply_luminance_multiplier = true; // apply luminance multiplier to screen texture
actions.check_multiview_samplers = RendererCompositorRD::get_singleton()->is_xr_enabled(); // Make sure we check sampling multiview textures.
Expand Down

0 comments on commit 842c1ca

Please sign in to comment.