Merge pull request #83620 from clayjohn/particles-material-emission

Fix typo in particles process material when using emission color texture
This commit is contained in:
Rémi Verschelde 2023-10-20 15:11:48 +02:00
commit 55fc347efd
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -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";