From 1b80f21abff039dbf3e319698d118712c3e4f77f Mon Sep 17 00:00:00 2001 From: clayjohn Date: Thu, 19 Oct 2023 17:29:46 +0200 Subject: [PATCH] Fix typo in particles process material when using emission color texture --- scene/resources/particle_process_material.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/resources/particle_process_material.cpp b/scene/resources/particle_process_material.cpp index 3e710e1f274..adaaba29de6 100644 --- a/scene/resources/particle_process_material.cpp +++ b/scene/resources/particle_process_material.cpp @@ -570,7 +570,7 @@ void ParticleProcessMaterial::_update_shader() { code += " int point = min(emission_texture_point_count - 1, int(rand_from_seed(alt_seed) * float(emission_texture_point_count)));\n"; code += " ivec2 emission_tex_size = textureSize(emission_texture_points, 0);\n"; code += " ivec2 emission_tex_ofs = ivec2(point % emission_tex_size.x, point / emission_tex_size.x);\n"; - code += " parameters.color *= texelFetch(emission_texture_color, emission_tex_ofs, 0);\n"; + code += " params.color *= texelFetch(emission_texture_color, emission_tex_ofs, 0);\n"; } code += "}\n";