|
@@ -1181,6 +1181,7 @@ THREE.GLTF2Loader = ( function () {
|
|
LINEAR: 9729,
|
|
LINEAR: 9729,
|
|
REPEAT: 10497,
|
|
REPEAT: 10497,
|
|
SAMPLER_2D: 35678,
|
|
SAMPLER_2D: 35678,
|
|
|
|
+ POINTS: 0,
|
|
LINES: 1,
|
|
LINES: 1,
|
|
LINE_LOOP: 2,
|
|
LINE_LOOP: 2,
|
|
LINE_STRIP: 3,
|
|
LINE_STRIP: 3,
|
|
@@ -2419,6 +2420,10 @@ THREE.GLTF2Loader = ( function () {
|
|
|
|
|
|
mesh = new THREE.LineLoop( geometry, material );
|
|
mesh = new THREE.LineLoop( geometry, material );
|
|
|
|
|
|
|
|
+ } else if ( primitive.mode === WEBGL_CONSTANTS.POINTS ) {
|
|
|
|
+
|
|
|
|
+ mesh = new THREE.Points( geometry, material );
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
|
|
|
|
throw new Error( 'THREE.GLTF2Loader: Primitive mode unsupported: ', primitive.mode );
|
|
throw new Error( 'THREE.GLTF2Loader: Primitive mode unsupported: ', primitive.mode );
|
|
@@ -2788,6 +2793,10 @@ THREE.GLTF2Loader = ( function () {
|
|
child = new THREE.Line( originalGeometry, material );
|
|
child = new THREE.Line( originalGeometry, material );
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
+ case 'Points':
|
|
|
|
+ child = new THREE.Points( originalGeometry, material );
|
|
|
|
+ break;
|
|
|
|
+
|
|
default:
|
|
default:
|
|
child = new THREE.Mesh( originalGeometry, material );
|
|
child = new THREE.Mesh( originalGeometry, material );
|
|
|
|
|