Skip to main content

Module: Plugins

Classes

Interfaces

Enumerations

Functions

addBloomData

addBloomData(material): boolean

Parameters

NameType
materialMaterial<MaterialEventMap>

Returns

boolean


buildCSGMeshBSP

buildCSGMeshBSP(meshes, matrix?): Mesh<BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>, Material<MaterialEventMap> | Material<MaterialEventMap>[], Object3DEventMap>

Parameters

NameType
meshes[Mesh<BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>, Material<MaterialEventMap> | Material<MaterialEventMap>[], Object3DEventMap>, TCSGOperation][]
matrix?Matrix4

Returns

Mesh<BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>, Material<MaterialEventMap> | Material<MaterialEventMap>[], Object3DEventMap>


buildCSGMeshBVH

buildCSGMeshBVH(meshes, matrix?): Brush

Parameters

NameType
meshes[Mesh<BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>, Material<MaterialEventMap> | Material<MaterialEventMap>[], Object3DEventMap>, TCSGOperation][]
matrix?Matrix4

Returns

Brush


sphericalFromObject

sphericalFromObject(obj, target): Spherical

Parameters

NameType
objObject
obj.positionVector3
obj.upVector3
targetVector3

Returns

Spherical


lerpAngle

lerpAngle(a, b, t): number

Parameters

NameType
anumber
bnumber
tnumber

Returns

number


lerpAngle2

lerpAngle2(a, b, w): number

Parameters

NameType
anumber
bnumber
wnumber

Returns

number


slerp

slerp(start, end, percent): Vector3

Parameters

NameType
startVector3
endVector3
percentnumber

Returns

Vector3


createIFrameCSS3DObject

createIFrameCSS3DObject(url, width, height, onload): CSS3DObject

Parameters

NameType
urlstring
widthnumber
heightnumber
onload() => void

Returns

CSS3DObject


computeAverageGeometryNormal

computeAverageGeometryNormal(modelObj): Vector3

Parameters

NameType
modelObjMesh<BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>, Material<MaterialEventMap> | Material<MaterialEventMap>[], Object3DEventMap>

Returns

Vector3


computeGeometryCenter

computeGeometryCenter(modelObj): Vector3

Parameters

NameType
modelObjMesh<BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>, Material<MaterialEventMap> | Material<MaterialEventMap>[], Object3DEventMap>

Returns

Vector3


computeGeometrySize

computeGeometrySize(modelObj, upVector?): Vector3

Parameters

NameType
modelObjMesh<BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>, Material<MaterialEventMap> | Material<MaterialEventMap>[], Object3DEventMap>
upVectorVector3

Returns

Vector3


addLUTData

addLUTData(material): boolean

Parameters

NameType
materialMaterial<MaterialEventMap>

Returns

boolean

Type aliases

TCSGOperation

Ƭ TCSGOperation: "union" | "subtract" | "intersect"


CanvasSnipperOptions

Ƭ CanvasSnipperOptions: SnipOptions & { waitForProgressive?: boolean ; progressiveFrames?: number ; tileRows?: number ; tileColumns?: number }

Variables

csgOperations

Const csgOperations: TCSGOperation[]


fontFormatExtensionMap

Const fontFormatExtensionMap: any


Uncharted2Tonemapping

Const Uncharted2Tonemapping: ToneMapping = CustomToneMapping