Variable EnvironmentTextureToolsConst
EnvironmentTextureTools: {
CreateEnvTextureAsync: (
texture: BaseTexture,
options?: CreateEnvTextureOptions,
) => Promise<ArrayBuffer>;
CreateIrradianceImageDataArrayBufferViews: (
data: ArrayBufferView,
info: EnvironmentTextureInfo,
) => ArrayBufferView<ArrayBufferLike>[];
CreateRadianceImageDataArrayBufferViews: (
data: ArrayBufferView,
info: EnvironmentTextureInfo,
) => ArrayBufferView<ArrayBufferLike>[][];
GetEnvInfo: (data: ArrayBufferView) => Nullable<EnvironmentTextureInfoV2>;
UploadEnvLevelsAsync: (
texture: InternalTexture,
data: ArrayBufferView,
info: EnvironmentTextureInfo,
) => Promise<void[]>;
UploadEnvSpherical: (
texture: InternalTexture,
info: EnvironmentTextureInfo,
) => void;
UploadIrradianceLevelsAsync: (
mainTexture: InternalTexture,
imageData: ArrayBufferView<ArrayBufferLike>[],
size: number,
imageType?: string,
dominantDirection?: Nullable<Vector3>,
) => Promise<void>;
UploadRadianceLevelsAsync: (
texture: InternalTexture,
imageData: ArrayBufferView<ArrayBufferLike>[][],
imageType?: string,
) => Promise<void>;
} = ...
CreateEnvTextureAsync: (
texture: BaseTexture,
options?: CreateEnvTextureOptions,
) => Promise<ArrayBuffer>;
CreateIrradianceImageDataArrayBufferViews: (
data: ArrayBufferView,
info: EnvironmentTextureInfo,
) => ArrayBufferView<ArrayBufferLike>[];
CreateRadianceImageDataArrayBufferViews: (
data: ArrayBufferView,
info: EnvironmentTextureInfo,
) => ArrayBufferView<ArrayBufferLike>[][];
GetEnvInfo: (data: ArrayBufferView) => Nullable<EnvironmentTextureInfoV2>;
UploadEnvLevelsAsync: (
texture: InternalTexture,
data: ArrayBufferView,
info: EnvironmentTextureInfo,
) => Promise<void[]>;
UploadEnvSpherical: (
texture: InternalTexture,
info: EnvironmentTextureInfo,
) => void;
UploadIrradianceLevelsAsync: (
mainTexture: InternalTexture,
imageData: ArrayBufferView<ArrayBufferLike>[],
size: number,
imageType?: string,
dominantDirection?: Nullable<Vector3>,
) => Promise<void>;
UploadRadianceLevelsAsync: (
texture: InternalTexture,
imageData: ArrayBufferView<ArrayBufferLike>[][],
imageType?: string,
) => Promise<void>;
} = ...
Type Declaration
-
CreateEnvTextureAsync: (
texture: BaseTexture,
options?: CreateEnvTextureOptions,
) => Promise<ArrayBuffer>Creates an environment texture from a loaded cube texture.
-
CreateIrradianceImageDataArrayBufferViews: (
data: ArrayBufferView,
info: EnvironmentTextureInfo,
) => ArrayBufferView<ArrayBufferLike>[]Creates the ArrayBufferViews used for initializing environment texture image data.
-
CreateRadianceImageDataArrayBufferViews: (
data: ArrayBufferView,
info: EnvironmentTextureInfo,
) => ArrayBufferView<ArrayBufferLike>[][]Creates the ArrayBufferViews used for initializing environment texture image data.
-
GetEnvInfo: (data: ArrayBufferView) => Nullable<EnvironmentTextureInfoV2>
Gets the environment info from an env file.
-
UploadEnvLevelsAsync: (
texture: InternalTexture,
data: ArrayBufferView,
info: EnvironmentTextureInfo,
) => Promise<void[]>Uploads the texture info contained in the env file to the GPU.
-
UploadEnvSpherical: (texture: InternalTexture, info: EnvironmentTextureInfo) => void
Uploads spherical polynomials information to the texture.
-
UploadIrradianceLevelsAsync: (
mainTexture: InternalTexture,
imageData: ArrayBufferView<ArrayBufferLike>[],
size: number,
imageType?: string,
dominantDirection?: Nullable<Vector3>,
) => Promise<void>Uploads the levels of image data to the GPU.
-
UploadRadianceLevelsAsync: (
texture: InternalTexture,
imageData: ArrayBufferView<ArrayBufferLike>[][],
imageType?: string,
) => Promise<void>Uploads the levels of image data to the GPU.
Sets of helpers addressing the serialization and deserialization of environment texture stored in a BabylonJS env file. Those files are usually stored as .env files.