Fix typo in particles process material when using emission color texture

This commit is contained in:
clayjohn 2023-10-19 17:29:46 +02:00
parent 7f884b4e00
commit 1b80f21abf

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