Appearance
title: hdr
hdr
EnvironmentHDR
Kind: global class
new EnvironmentHDR(opts)
环境 hdr
| Param | Type |
|---|---|
| opts | * |
environmentHDR.getEquirectangularMapTexture(pmremGenerator, path, callback, type) ⇒
创建场景环境 hdr 图- 圆柱体 hdr
Kind: instance method of EnvironmentHDR
Returns: hdr
| Param | Type | Default | Description |
|---|---|---|---|
| pmremGenerator | pmremGenerator | ||
| path | string | hdr 路径 | |
| callback | function | 回调函数 | |
| type | string | "hdr" | Hdr 类型(hdr,exr,none,neutral) |
environmentHDR.getCubeMapTexture(pmremGenerator, paths, callback) ⇒
创建场景盒子环境 hdr 图
Kind: instance method of EnvironmentHDR
Returns: scene.environment
| Param | Type | Description |
|---|---|---|
| pmremGenerator | pmremGenerator | |
| paths | string | hdr 路径 |
| callback | function | 回调函数 |