External Publication
Visit Post

(March 2026) Monthly WIP Screenshot Thread

jMonkeyEngine Hub March 2, 2026
Source
I fixed a few bugs with the trails for particle monkey. I’ve updated how the mesh is built so there are now two sets of UV’s for use in shaders. The first set gives you the uv location based on the full lifetime of the trail. For example, if there are 20 segments total since the trail first spawned and 5 of them have already lost their lifetime it will still treat the UV’s consistently and treat it as 20. That way the texture on the trails mesh will be consistent. The second UV set gives the location based on the current live trail size. This makes it really easy to create shaders that need to identify the front and the back of the trail. You can already fade out the start and end parts of the trail using the color over time parameters, but it’s still useful for some shaders. The example above takes advantage of it. There is also a new “scale” parameter for the trail shader to help with texturing. I plan on moving my trail shader from my examples project back to the root particle monkey project since I haven’t included a default material yet.

Discussion in the ATmosphere

Loading comments...