RedGPU 컨텍스트
HDR 파일 경로 또는 정보
OptionalonLoad: (textureInstance?: HDRTexture) => void로드 완료 콜백
OptionalonError: (error: Error) => void로드 에러 콜백
생성될 큐브맵의 한 면 크기
밉맵 사용 여부 (IBL 사용 시 필수)
Retrieves the GPU device associated with the current instance.
The GPU device.
Retrieves the RedGPUContext instance.
The RedGPUContext instance.
Retrieves the UUID of the object.
The UUID of the object.
OptionalarrayLayerCount?: numberHow many array layers, starting with GPUTextureViewDescriptor#baseArrayLayer, are accessible to the texture view.
Optionalaspect?: GPUTextureAspectWhich GPUTextureAspect | aspect(s) of the texture are accessible to the texture view.
OptionalbaseArrayLayer?: numberThe index of the first array layer accessible to the texture view.
OptionalbaseMipLevel?: numberThe first (most detailed) mipmap level accessible to the texture view.
Optionaldimension?: GPUTextureViewDimensionThe dimension to view the texture as.
Optionalformat?: GPUTextureFormatThe format of the texture view. Must be either the GPUTextureDescriptor#format of the texture or one of the GPUTextureDescriptor#viewFormats specified during its creation.
Optionallabel?: stringThe initial value of GPUObjectBase#label | GPUObjectBase.label.
Optionalusage?: numberThe allowed GPUTextureUsage | usage(s) for the texture view. Must be a subset of the GPUTexture#usage flags of the texture. If 0, defaults to the full set of GPUTexture#usage flags of the texture. Note: If the view's GPUTextureViewDescriptor#format doesn't support all of the texture's GPUTextureDescriptor#usages, the default will fail, and the view's GPUTextureViewDescriptor#usage must be specified explicitly.
Adds a listener function to the dirty pipeline listeners array. This function will be called when the pipeline becomes dirty.
The listener function to be added.
Fires the dirty listeners list.
OptionalresetList: boolean = falseIndicates whether to reset the dirty listeners list after firing.
Removes a dirty pipeline listener from the list of listeners.
The listener function to be removed.
StaticgetStaticis
HDRTexture 클래스 지원 형식: .hdr (Radiance HDR/RGBE) 형식만 지원 GGX 중요도 샘플링을 통해 거칠기별로 프리필터링된 큐브맵을 생성합니다.