Skip to content

Commit

Permalink
Fix gpu part aging issue (#15272)
Browse files Browse the repository at this point in the history
  • Loading branch information
deltakosh authored Jul 12, 2024
1 parent 66f7ce8 commit 46fa48a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dev/core/src/Shaders/gpuRenderParticles.vertex.fx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void main() {
#else
vUV = uv;
#endif
float ratio = age / life;
float ratio = min(1.0, age / life);
#ifdef COLORGRADIENTS
vColor = texture2D(colorGradientSampler, vec2(ratio, 0));
#else
Expand Down

0 comments on commit 46fa48a

Please sign in to comment.