Creates an instance of SkyboxPrimitive. *
Optionalsize: number = 2.0The size of the skybox cube.
Protected_Protected_Protected_OptionalbitangentsThe array of bitangent vectors. *
The array of vertex indices. *
The array of vertex normals. *
OptionaltangentsThe array of tangent vectors. *
The array of texture coordinates. *
The array of vertex positions. *
The unique identifier for the mesh data.
Calculates smooth normals and generates indices for the mesh based on its vertices.
this.normals and this.indices.Calculates tangents and bitangents for the mesh and populates the instance's arrays.
ProtecteddeserializeDeserializes the mesh data from a JSON object. * *
The JSON object to deserialize from.
ProtectedgetInverts the direction of all normal vectors in the mesh.
ProtectedserializeSerializes the mesh data to a JSON object. * *
StaticgetCalculates the bounding box for this mesh using its internal vertices.
A BoundingBox object, or null if the mesh has no vertices.
StaticgetCalculates a bounding sphere for this mesh using its internal vertices. The sphere's center is the mesh's centroid.
A BoundingSphere object, or null if the mesh has no vertices.
StaticinstanciateCreates a new SkyboxPrimitive instance.
Optionalvertices: vec3[]Optional initial vertices. *
Optionalnormals: vec3[]Optional initial normals. *
Optionaluvs: vec2[]Optional initial UVs. *
Optionalindices: number[]Optional initial indices. *
Represents a cube primitive specifically used for a skybox.