diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-27 16:54:50 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-27 16:54:50 +0200 |
commit | 21bcff00e96dff88f4e57fe3916e3dd760cae6f4 (patch) | |
tree | b3214bba2d2418302e514820f725e8b57e001ca0 /scene/resources/visual_shader.cpp | |
parent | 58beed34954a5b80204c0a7473813574023bf625 (diff) | |
parent | db251a3f99eadbd26a015bb8a9e701f5723df08c (diff) | |
download | redot-engine-21bcff00e96dff88f4e57fe3916e3dd760cae6f4.tar.gz |
Merge pull request #95126 from Chaosus/shader_cubemap_fix
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 c3665a462c..0113b6f835 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); } } |