ソースを参照

reset color when allocating particle

ncannasse 10 年 前
コミット
86a9bfce78
1 ファイル変更1 行追加0 行削除
  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;
 	}