Skip to content

Commit

Permalink
Fix particle scale
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Aug 11, 2021
1 parent 3fcb1de commit 11438e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/arm/node/MakeParticle.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);');
Expand Down

0 comments on commit 11438e9

Please sign in to comment.