godot/scene/3d
PouleyKetchoupp d82cc621e1
Fix 2D Particle velocity with directed emission mask
Changed CPU velocity calculation for EMISSION_SHAPE_DIRECTED_POINTS
to follow the same logic as in the GPU version:
mat2 rotm;
rotm[0] = texelFetch(emission_texture_normal, emission_tex_ofs, 0).xy;
rotm[1] = rotm[0].yx * vec2(1.0, -1.0);
VELOCITY.xy = rotm * VELOCITY.xy;

Now both CPUParticles2D & CPUParticles3D (z disabled) show the same results
as their GPU counterparts and take the initial velocity settings into account.

(cherry picked from commit 1c231cacb3)
2020-08-21 02:28:19 +02:00
..
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
area.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
area.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
arvr_nodes.cpp Merge pull request #35406 from lawnjelly/ortho-shadow 2020-01-22 22:02:09 +01:00
arvr_nodes.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
audio_stream_player_3d.cpp Fix bug with AudioStreamPlayer3D audio position 2020-05-07 13:37:06 +02:00
audio_stream_player_3d.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
baked_lightmap.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
baked_lightmap.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
bone_attachment.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
bone_attachment.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
camera.cpp Call Spatial::get_global_transform and Vector3::dot only once within Camera::is_position_behind to avoid redundant work. 2020-06-29 10:48:45 +02:00
camera.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_object.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_object.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_polygon.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_polygon.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_shape.cpp Add a new configuration warning to CollisionShape 2020-03-06 23:51:26 +01:00
collision_shape.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
cpu_particles.cpp Fix 2D Particle velocity with directed emission mask 2020-08-21 02:28:19 +02:00
cpu_particles.h Validate input in (CPU)Particles set_emission_shape() 2020-01-16 11:08:51 +01:00
gi_probe.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gi_probe.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
immediate_geometry.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
immediate_geometry.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
interpolated_camera.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
interpolated_camera.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
light.cpp Add performance hints to the DirectionalLight shadow mode property hint 2020-06-04 12:16:39 +02:00
light.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
listener.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
listener.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
mesh_instance.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
mesh_instance.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
multimesh_instance.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
multimesh_instance.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
navigation.cpp Fix C4724: potential mod by 0 warnings. 2020-05-21 11:28:01 +01:00
navigation.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
navigation_mesh.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
navigation_mesh.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
particles.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
particles.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
path.cpp Fix repeated updates of PathFollow3D Transform 2020-07-10 10:59:24 +02:00
path.h Fix repeated updates of PathFollow3D Transform 2020-07-10 10:59:24 +02:00
physics_body.cpp Merge pull request #39817 from yrk06/ExposeInertiaTensor 2020-07-21 16:50:56 +02:00
physics_body.h Added Method get_inverse_inertia_tensor 2020-07-19 13:51:32 -03:00
physics_joint.cpp Added missing spring enums for generic_6dof_joint 2020-05-04 16:10:22 +02:00
physics_joint.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
position_3d.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
position_3d.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
proximity_group.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
proximity_group.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
ray_cast.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
ray_cast.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
reflection_probe.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
reflection_probe.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
remote_transform.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
remote_transform.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
skeleton.cpp Fixed IK rotation issue 2020-04-16 11:42:07 +02:00
skeleton.h Fixed IK rotation issue 2020-04-16 11:42:07 +02:00
soft_body.cpp Make softbody completelly stiff to attachment point 2020-05-01 10:56:57 +02:00
soft_body.h Make softbody completelly stiff to attachment point 2020-05-01 10:56:57 +02:00
spatial.cpp Fixes crash in Spatial::notification 2020-01-25 13:16:51 +08:00
spatial.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
spatial_velocity_tracker.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
spatial_velocity_tracker.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
spring_arm.cpp Activate Physics Process in SpringArm3D. 2020-04-20 11:51:30 +02:00
spring_arm.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
sprite_3d.cpp Check for uncompressed uvs in Sprite3D 2020-08-16 19:19:14 -07:00
sprite_3d.h Check for uncompressed uvs in Sprite3D 2020-08-16 19:19:14 -07:00
vehicle_body.cpp Fixed random force on vehicle wheel 2020-02-15 20:30:17 +05:30
vehicle_body.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
visibility_notifier.cpp Fix visibility enabler flag toggling 2020-03-25 11:38:53 +01:00
visibility_notifier.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
visual_instance.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
visual_instance.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
voxel_light_baker.cpp Remove unused #if 0'ed code 2020-01-21 21:41:54 +01:00
voxel_light_baker.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
world_environment.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
world_environment.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00