Explorar el Código

unindex + tangents sur defaultUnitCube

ncannasse hace 7 años
padre
commit
dec9b3df1c
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      h3d/prim/Cube.hx

+ 2 - 0
h3d/prim/Cube.hx

@@ -94,8 +94,10 @@ class Cube extends Polygon {
 			return c;
 		c = new h3d.prim.Cube(1, 1, 1);
 		c.translate(-0.5,-0.5,-0.5);
+		c.unindex();
 		c.addNormals();
 		c.addUniformUVs(1.0);
+		c.addTangents();
 		@:privateAccess engine.resCache.set(Cube, c);
 		return c;
 	}