Selaa lähdekoodia

fix default parts material

ncannasse 7 vuotta sitten
vanhempi
commit
ff5c3ed171
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      h3d/parts/Particles.hx

+ 1 - 0
h3d/parts/Particles.hx

@@ -35,6 +35,7 @@ class Particles extends h3d.scene.Mesh {
 
 	public function new( ?texture, ?parent) {
 		super(null, null, parent);
+		material.props = material.getDefaultProps("particles3D");
 		sortMode = Back;
 		pshader = new h3d.shader.ParticleShader();
 		pshader.isAbsolute = true;