mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Better particle lighting
This commit is contained in:
parent
4961ca2f6d
commit
2893f400f8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user