Better particle lighting

This commit is contained in:
Joshua Barretto 2023-05-19 14:58:59 +01:00
parent 4961ca2f6d
commit 2893f400f8

View File

@ -686,7 +686,8 @@ void main() {
sin(lifetime * 5 + rand2)
) * 0.03,
vec3(pow(1.0 - abs(percent() - 0.5) * 2.0, 0.2)),
vec4(vec3(1.8, 0.4, 5.0 + rand6), 1),
vec4(mix(vec3(0.4, 0.2, 0.8), vec3(5, 2, 10), pow(percent(), 2)), 1),
/* vec4(vec3(1.8 - percent() * 2, 0.4 + percent() * 2, 5.0 + rand6), 1), */
spin_in_axis(vec3(rand6, rand7, rand8), rand9 * 3 + lifetime * 5)
);
break;