Interface ICubeTextureCreationOptions
buffer?: ArrayBufferView<ArrayBufferLike>;
createPolynomials?: boolean;
extensions?: string[];
files?: string[];
forcedExtension?: any;
format?: number;
loaderOptions?: any;
lodOffset?: number;
lodScale?: number;
noMipmap?: boolean;
onError?: (message?: string, exception?: any) => void;
onLoad?: () => void;
prefiltered?: boolean;
sphericalPolynomialTargetSize?: number;
useSRGBBuffer?: boolean;
}
Properties
Optionalbuffer
buffer to load instead of loading the data from the url
Optionalcreate Polynomials
createPolynomials defines whether or not to create polynomial harmonics from the texture data if necessary
Optionalextensions
Defines the suffixes add to the picture name in case six images are in use like _px.jpg
Optionalfiles
files defines the six files to load for the different faces in that order: px, py, pz, nx, ny, nz
Optionalforced Extension
forcedExtension defines the extensions to use (force a special type of file to load) in case it is different from the file name
Optionalformat
format defines the internal format to use for the texture once loaded
Optionalloader Options
loaderOptions options to be passed to the loader
Optionallod Offset
lodOffset defines the offset applied to environment texture. This manages first LOD level used for IBL according to the roughness
Optionallod Scale
lodScale defines the scale applied to environment texture. This manages the range of LOD level used for IBL according to the roughness
Optionalno Mipmap
noMipmap defines if mipmaps should be created or not
Optionalon Error
onError defines a callback triggered in case of error during load
Optionalon Load
onLoad defines a callback triggered at the end of the file load if no errors occurred
Optionalprefiltered
prefiltered defines whether or not the texture is created from prefiltered data
Optionalspherical Polynomial Target Size
Target face size for spherical polynomial computation. 0 = full resolution (default).
Optionaluse SRGB Buffer
useSRGBBuffer Defines if the texture must be loaded in a sRGB GPU buffer (if supported by the GPU) (default: false)
Defines the available options when creating a cube texture