CubeTextureLoader

纹理加载器加载CubeTexture的一个类。 内部使用ImageLoader来加载文件。

加载的CubeTexture在sRGB颜色空间中。这意味着colorSpace属性被设置为THREE。默认为SRGBColorSpace。 texture在给material赋值的时候是微任务异步的,为了确保的修改属性在赋值前。

基础用法

API

Attributes

NameDescriptionTypeDefaultRequired
type纹理类型CubeTextureType'map'Yes
urls构造函数参数Array<string>[]Yes
load构造函数参数CubeTextureLoaderOnLoad() => undefinedNo
progress构造函数参数CubeTextureLoaderOnProgress() => undefinedNo
error构造函数参数CubeTextureLoaderOnError() => undefinedNo
options实例属性CubeTextureLoaderOptions{}No

Events

NameDescriptionType
load实例创建后触发方法Function
managerLoadLoadingManager方法Function
managerStartLoadingManager方法Function
managerProgressLoadingManager方法Function
managerErrorLoadingManager方法Function

Slots

NameDescription
default默认插槽

源代码

文档