GPUParticles: Do not grow when size is 0
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@15047 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
c520db663f
commit
c02d99ed9f
@ -45,7 +45,7 @@ void main(void)
|
||||
new_particle_position = particle_position + particle_velocity.xyz * float(dt);
|
||||
new_particle_velocity = particle_velocity;
|
||||
new_lifetime = updated_lifetime;
|
||||
new_size = mix(size_initial, size_initial * size_increase_factor, updated_lifetime);
|
||||
new_size = (size == 0) ? 0. : mix(size_initial, size_initial * size_increase_factor, updated_lifetime);
|
||||
}
|
||||
gl_Position = vec4(0.);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user