From 11438e915ca8a060a056cf0953a8f9598e80ffbe Mon Sep 17 00:00:00 2001 From: Lubos Lenco Date: Wed, 11 Aug 2021 09:13:42 +0200 Subject: [PATCH] Fix particle scale --- Sources/arm/node/MakeParticle.hx | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/arm/node/MakeParticle.hx b/Sources/arm/node/MakeParticle.hx index 63640bd5d..2cbed0103 100644 --- a/Sources/arm/node/MakeParticle.hx +++ b/Sources/arm/node/MakeParticle.hx @@ -59,6 +59,7 @@ class MakeParticle { vert.add_out('vec3 p_location'); vert.write('p_location = p_velocity * p_age;'); vert.write('spos.xyz += p_location;'); + vert.write('spos.xyz *= vec3(0.01, 0.01, 0.01);'); vert.add_uniform('mat4 WVP', '_worldViewProjectionMatrix'); vert.write('gl_Position = mul(spos, WVP);');