jMonkeyEngine / jMonkeyEngine/jmonkeyengine
Particle.j3md glow color ignores color interpolation
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 1.2k
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 14
Description
The translucent white texture you input into the particle emitter is blended with the current particle color. However, for the glow color this is not the case. No matter what color the particle currently is, its glow color will always be sampled from the non-blended texture, therefore everything goes white once you enable bloom.
I might have explained a bit badly, so here are two screenshots for illustration:
No bloom:

Bloom:

In both cases the set diffuse and glow texture are the same.
I assume Particle.j3md is using the standard glow.frag while it should actually be using a separate shader that also does the blending.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting Particle.j3md and the glow.frag shader it references, comparing the glow path with the diffuse particle-color blending described in the issue. Confirm the behavior with bloom enabled and verify that the glow color follows the current particle color instead of sampling only the unblended texture.
Written by the indexing model from the issue text.
Assessment
- Domain
- computer-graphics, game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100