Skip to content

Commit

Permalink
Soft particle-scene intersection, solid collider collision (#7)
Browse files Browse the repository at this point in the history
### 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.
  • Loading branch information
mbrea-c authored Feb 27, 2024
1 parent d7485fb commit aa0b278
Show file tree
Hide file tree
Showing 6 changed files with 250 additions and 122 deletions.
Loading

0 comments on commit aa0b278

Please sign in to comment.