Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soft particle-scene intersection, solid collider collision #7

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

mbrea-c
Copy link
Owner

@mbrea-c mbrea-c commented Feb 27, 2024

Soft particle-scene intersection

Billboarded particles produce hard edges when intersecting with scene geometry, which is ugly. This PR introduces configurable soft particle edges which fade in intersections with geometry, very useful for smoke-like particle effects.
It also adds configuration options for rounded particle edge fading.

This feature requires the camera to have the depth prepass enabled (i.e. the DepthPrepass component added). If it is not present, the behaviour is as before.

Solid collider collisions

Previously, all colliders were treated as hollow. This adds support for solid colliders, and forces particles out of them.

@mbrea-c mbrea-c merged commit aa0b278 into master Feb 27, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant