Fix instance uniform shader crash in custom functions
This commit is contained in:
parent
9923179578
commit
8ed84a9f01
1 changed files with 1 additions and 1 deletions
|
@ -748,7 +748,7 @@ void SceneShaderForwardClustered::init(RendererStorageRD *p_storage, const Strin
|
|||
actions.default_filter = ShaderLanguage::FILTER_LINEAR_MIPMAP;
|
||||
actions.default_repeat = ShaderLanguage::REPEAT_ENABLE;
|
||||
actions.global_buffer_array_variable = "global_variables.data";
|
||||
actions.instance_uniform_index_variable = "instances.data[instance_index].instance_uniforms_ofs";
|
||||
actions.instance_uniform_index_variable = "instances.data[instance_index_interp].instance_uniforms_ofs";
|
||||
|
||||
compiler.initialize(actions);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue