summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-10-20 15:11:48 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-10-20 15:11:48 +0200
commit55fc347efd50d297de3b92a5bfc141e52e57c90f (patch)
tree6469eb8b88ead9d80dd660eeeca3446b4afc5e5c
parenta63bff4ce4d69ca598689e23924d0004aff21f31 (diff)
parent1b80f21abff039dbf3e319698d118712c3e4f77f (diff)
downloadredot-engine-55fc347efd50d297de3b92a5bfc141e52e57c90f.tar.gz
Merge pull request #83620 from clayjohn/particles-material-emission
Fix typo in particles process material when using emission color texture
-rw-r--r--scene/resources/particle_process_material.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/particle_process_material.cpp b/scene/resources/particle_process_material.cpp
index ff0a6431bd..0a114d6b35 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";