소스 검색

minor change

ncannasse 7 년 전
부모
커밋
e963f5f5c3
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      h3d/scene/World.hx

+ 2 - 3
h3d/scene/World.hx

@@ -159,14 +159,13 @@ class World extends Object {
 				new hxd.fmt.hmd.Data.GeometryFormat("position", DVec3),
 				new hxd.fmt.hmd.Data.GeometryFormat("normal", DVec3),
 			],
-			defaults : [null, new h3d.Vector(0,0,1)],
+			defaults : [],
 		};
 		if(enableNormalMaps) {
+			r.defaults[r.fmt.length] = new h3d.Vector(1,0,0);
 			r.fmt.push(new hxd.fmt.hmd.Data.GeometryFormat("tangent", DVec3));
-			r.defaults.push(new h3d.Vector(1,0,0));
 		}
 		r.fmt.push(new hxd.fmt.hmd.Data.GeometryFormat("uv", DVec2));
-		r.defaults.push(null);
 		return r;
 	}