Resonite-Issues icon indicating copy to clipboard operation
Resonite-Issues copied to clipboard

Optionally ignore/don't invert alpha channel on spherical harmonic directional coloring particle modules

Open mxjessie opened this issue 1 month ago • 0 comments

Is your feature request related to a problem? Please describe.

When using a PhotonDust particle color module, e.g. ColorByVelocityDirectionSH1, when the direction of travel goes negative, all channels including alpha get inverted. With an alpha-aware rendering mode on the material, this can cause particles to disappear or render incorrectly. Opaque and cutout modes are unaffected.

I think the behavior is technically correct, but it feels a bit unintuitive and like it may limit the usefulness of these modules somewhat. I don't think its a bug exactly, since I have also used this directional visibility in some particle effects.

Describe the solution you'd like

A boolean toggle on the ColorBy{Velocity,Orientation}SH{1-4} modules that optionally ignores the alpha channel when applying directional inversion of colors.

Describe alternatives you've considered

Not using alpha on my directionally-colored particle effects, I suppose

Additional Context

I made a world that tries to demonstrate this by emitting and bouncing particles around inside a low-poly sphere while flipping between render modes and alpha values. It's a bit flashy and kinda pretty, too.

https://go.resonite.com/record/U-qualia/R-dd65e17e-afb0-4122-be1b-c431af7ea92b

Image

Requesters

qualia (qualium on Discord)

mxjessie avatar Nov 20 '25 11:11 mxjessie