Browse Source

reset color when allocating particle

ncannasse 10 năm trước cách đây
mục cha
commit
86a9bfce78
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      h3d/parts/Particles.hx

+ 1 - 0
h3d/parts/Particles.hx

@@ -84,6 +84,7 @@ class Particles extends h3d.scene.Mesh {
 		p.rotation = 0;
 		p.ratio = 1;
 		p.size = 1;
+		p.r = p.g = p.b = p.a = 1;
 		return p;
 	}