Support for 2D particles to collide against SDF

-Added SDF collision support for 2D particles
-Changed the SDF generation to be fully signed
This commit is contained in:
reduz 2021-05-20 11:25:06 -03:00
parent 809948f977
commit 789713b008
20 changed files with 684 additions and 158 deletions

View file

@ -3388,7 +3388,7 @@
<constant name="PARTICLES_DRAW_ORDER_LIFETIME" value="1" enum="ParticlesDrawOrder">
Sort particles based on their lifetime.
</constant>
<constant name="PARTICLES_DRAW_ORDER_VIEW_DEPTH" value="2" enum="ParticlesDrawOrder">
<constant name="PARTICLES_DRAW_ORDER_VIEW_DEPTH" value="3" enum="ParticlesDrawOrder">
Sort particles based on their distance to the camera.
</constant>
<constant name="VIEWPORT_UPDATE_DISABLED" value="0" enum="ViewportUpdateMode">