Skip to content
Snippets Groups Projects
Commit cc486bac authored by Alexander Gauggel's avatar Alexander Gauggel
Browse files

[#69] Fade out particle color towards end of life

parent 982ca1c8
No related branches found
No related tags found
1 merge request!56Resolve "Partikelsystem"
Pipeline #26070 failed
......@@ -40,4 +40,7 @@ void main()
// make the triangle look like a circle
outColor *= circleFactor(passTriangleCoordinates);
// fade out particle shortly before it dies
outColor *= clamp(passlifeTime * 2, 0, 1);
}
\ No newline at end of file
......@@ -40,4 +40,7 @@ void main()
// make the triangle look like a circle
outColor *= circleFactor(passTriangleCoordinates);
// fade out particle shortly before it dies
outColor *= clamp(passlifeTime * 2, 0, 1);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment