new PrepData()
Configuration instructions to be used by run method.
Methods
-
<static> PrepData#addResource(resource)
-
Add a resource description.
Parameters:
Name Type Description resourceTHREE.LoaderSupport.ResourceDescriptor -
<static> PrepData#clone()
-
Clones this object and returns it afterwards.
Returns:
-
<static> PrepData#getCallbacks()
-
Returns all callbacks as THREE.LoaderSupport.Callbacks
Returns:
-
<static> PrepData#setCrossOrigin(crossOrigin)
-
Sets the CORS string to be used.
Parameters:
Name Type Description crossOriginstring CORS value
-
<static> PrepData#setDisregardNormals(disregardNormals)
-
Tells whether normals should be completely disregarded and regenerated.
Parameters:
Name Type Default Description disregardNormalsboolean false -
<static> PrepData#setMaterialPerSmoothingGroup(materialPerSmoothingGroup)
-
Tells whether a material shall be created per smoothing group.
Parameters:
Name Type Default Description materialPerSmoothingGroupboolean false -
<static> PrepData#setStreamMeshesTo(streamMeshesTo)
-
Set the node where the loaded objects will be attached directly.
Parameters:
Name Type Description streamMeshesToTHREE.Object3D Object already attached to scenegraph where new meshes will be attached to
-
<static> PrepData#setUseAsync(useAsync)
-
If true uses async loading with worker, if false loads data synchronously.
Parameters:
Name Type Description useAsyncboolean -
<static> PrepData#setUseIndices(useIndices)
-
Tells whether indices should be used
Parameters:
Name Type Default Description useIndicesboolean false