Class CopyTools
Hierarchy
- CopyTools
Index
Methods
Methods
Static Generate Base64 String From TextureSearch playground for GenerateBase64StringFromTexture
-
Reads the pixels stored in the webgl texture and returns them as a base64 string
Parameters
-
texture: BaseTexture
defines the texture to read pixels from
-
Optional faceIndex: number
defines the face of the texture to read (in case of cube texture)
-
Optional level: number
defines the LOD level of the texture to read (in case of Mip Maps)
Returns Promise<Nullable<string>>
The base64 encoded string or null
-
Class used to host copy specific utilities