You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix GPUParticle3D emission point generation
`emission_point_texture` is now correctly created from an image containing the emission points.
This commit is contained in:
@@ -362,6 +362,7 @@ void GPUParticles3DEditor::_generate_emission_points() {
|
|||||||
|
|
||||||
Ref<ImageTexture> tex;
|
Ref<ImageTexture> tex;
|
||||||
tex.instantiate();
|
tex.instantiate();
|
||||||
|
tex->create_from_image(image);
|
||||||
|
|
||||||
Ref<ParticlesMaterial> material = node->get_process_material();
|
Ref<ParticlesMaterial> material = node->get_process_material();
|
||||||
ERR_FAIL_COND(material.is_null());
|
ERR_FAIL_COND(material.is_null());
|
||||||
@@ -390,6 +391,7 @@ void GPUParticles3DEditor::_generate_emission_points() {
|
|||||||
|
|
||||||
Ref<ImageTexture> tex2;
|
Ref<ImageTexture> tex2;
|
||||||
tex2.instantiate();
|
tex2.instantiate();
|
||||||
|
tex2->create_from_image(image2);
|
||||||
|
|
||||||
material->set_emission_normal_texture(tex2);
|
material->set_emission_normal_texture(tex2);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user