Class TextureTools
Hierarchy
- TextureTools
Index
Methods
Methods
Static Apply Post ProcessSearch playground for ApplyPostProcess
-
Apply a post process to a texture
Parameters
-
postProcessName: string
name of the fragment post process
-
internalTexture: InternalTexture
the texture to encode
-
scene: Scene
the scene hosting the texture
-
Optional type: number
type of the output texture. If not provided, use the one from internalTexture
-
Optional samplingMode: number
sampling moode to use to sample the source texture. If not provided, use the one from internalTexture
-
Optional format: number
format of the output texture. If not provided, use the one from internalTexture
Returns Promise<InternalTexture>
a promise with the internalTexture having its texture replaced by the result of the processing
-
Static Create Resized CopySearch playground for CreateResizedCopy
-
Uses the GPU to create a copy texture rescaled at a given size
Parameters
-
texture: Texture
Texture to copy from
-
width: number
defines the desired width
-
height: number
defines the desired height
-
Optional useBilinearMode: boolean
defines if bilinear mode has to be used
Returns Texture
the generated texture
-
Class used to host texture specific utilities