diff options
author | Chaosus <chaosus89@gmail.com> | 2024-08-04 14:43:55 +0300 |
---|---|---|
committer | Chaosus <chaosus89@gmail.com> | 2024-08-27 09:43:05 +0300 |
commit | db251a3f99eadbd26a015bb8a9e701f5723df08c (patch) | |
tree | 426b405df504ae09b65f4cdcefbad6c2f9ee22c8 /scene/resources/visual_shader.cpp | |
parent | db76de5de8a415b29be4c7dd84b99bd0fe260822 (diff) | |
download | redot-engine-db251a3f99eadbd26a015bb8a9e701f5723df08c.tar.gz |
Allow setting a cubemap as default parameter to shader
Diffstat (limited to 'scene/resources/visual_shader.cpp')
-rw-r--r-- | scene/resources/visual_shader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp index a144c5ba83..005b5b5c0b 100644 --- a/scene/resources/visual_shader.cpp +++ b/scene/resources/visual_shader.cpp @@ -2953,7 +2953,7 @@ void VisualShader::_update_shader() const { const_cast<VisualShader *>(this)->set_code(final_code); for (int i = 0; i < default_tex_params.size(); i++) { int j = 0; - for (List<Ref<Texture2D>>::ConstIterator itr = default_tex_params[i].params.begin(); itr != default_tex_params[i].params.end(); ++itr, ++j) { + for (List<Ref<Texture>>::ConstIterator itr = default_tex_params[i].params.begin(); itr != default_tex_params[i].params.end(); ++itr, ++j) { const_cast<VisualShader *>(this)->set_default_texture_parameter(default_tex_params[i].name, *itr, j); } } |