浏览代码

Fix instance uniform typo

Winston Hartnett 4 年之前
父节点
当前提交
96fa2ee2a0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp

+ 1 - 1
servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp

@@ -749,7 +749,7 @@ void SceneShaderForwardClustered::init(RendererStorageRD *p_storage, const Strin
 		actions.default_filter = ShaderLanguage::FILTER_LINEAR_MIPMAP;
 		actions.default_filter = ShaderLanguage::FILTER_LINEAR_MIPMAP;
 		actions.default_repeat = ShaderLanguage::REPEAT_ENABLE;
 		actions.default_repeat = ShaderLanguage::REPEAT_ENABLE;
 		actions.global_buffer_array_variable = "global_variables.data";
 		actions.global_buffer_array_variable = "global_variables.data";
-		actions.instance_uniform_index_variable = "draw_call.instance_uniforms_ofs";
+		actions.instance_uniform_index_variable = "instances.data[instance_index].instance_uniforms_ofs";
 
 
 		compiler.initialize(actions);
 		compiler.initialize(actions);
 	}
 	}