|
|
@@ -2255,6 +2255,9 @@ const ALPHA_MODES = {
|
|
|
|
|
|
/**
|
|
|
* Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#default-material
|
|
|
+ *
|
|
|
+ * @param {Object<String, Material>} cache
|
|
|
+ * @return {Material}
|
|
|
*/
|
|
|
function createDefaultMaterial( cache ) {
|
|
|
|
|
|
@@ -2753,6 +2756,9 @@ class GLTFParser {
|
|
|
* Textures) can be reused directly and are not marked here.
|
|
|
*
|
|
|
* Example: CesiumMilkTruck sample model reuses "Wheel" meshes.
|
|
|
+ *
|
|
|
+ * @param {Object} cache
|
|
|
+ * @param {Object3D} index
|
|
|
*/
|
|
|
_addNodeRef( cache, index ) {
|
|
|
|
|
|
@@ -2768,7 +2774,14 @@ class GLTFParser {
|
|
|
|
|
|
}
|
|
|
|
|
|
- /** Returns a reference to a shared resource, cloning it if necessary. */
|
|
|
+ /**
|
|
|
+ * Returns a reference to a shared resource, cloning it if necessary.
|
|
|
+ *
|
|
|
+ * @param {Object} cache
|
|
|
+ * @param {Number} index
|
|
|
+ * @param {Object} object
|
|
|
+ * @return {Object}
|
|
|
+ */
|
|
|
_getNodeRef( cache, index, object ) {
|
|
|
|
|
|
if ( cache.refs[ index ] <= 1 ) return object;
|
|
|
@@ -3653,7 +3666,12 @@ class GLTFParser {
|
|
|
|
|
|
}
|
|
|
|
|
|
- /** When Object3D instances are targeted by animation, they need unique names. */
|
|
|
+ /**
|
|
|
+ * When Object3D instances are targeted by animation, they need unique names.
|
|
|
+ *
|
|
|
+ * @param {String} originalName
|
|
|
+ * @return {String}
|
|
|
+ */
|
|
|
createUniqueName( originalName ) {
|
|
|
|
|
|
const sanitizedName = PropertyBinding.sanitizeNodeName( originalName || '' );
|