new Cesium.ImageBasedLighting()

在瓦片和模型上管理基于图像的照明的属性. 同时管理必要的资源和纹理.

If specular environment maps are used, ImageBasedLighting#destroy must be called 当基于图像的照明不再需要适当清理 GPU 资源时. 如果一个模型或瓷砖创造了一个基于图像的Lighting实例,它将处理这个. 否则,应用程序负责要求销毁().

Name Type Default Description
options.imageBasedLightingFactor Cartesian2 Cartesian2(1.0, 1.0) optional Scales diffuse and specular image-based lighting from the earth, sky, atmosphere and star skybox.
options.sphericalHarmonicCoefficients Array.<Cartesian3> optional 用于图像基照明散色的第三顺序球形谐波系数.
options.specularEnvironmentMaps string optional A URL to a KTX2 file that contains a cube map of the specular lighting and the convoluted specular mipmaps.

Members

imageBasedLightingFactor : Cartesian2

+NT++0++增加来自地球,天空,大气,以及星空盒的照明. 这个笛卡尔用来放大最后的散射光和光谱光 这些来源对最终颜色的贡献。 数值为 0.0 关闭光源.
Default Value: Cartesian2(1.0, 1.0)

specularEnvironmentMaps : string

A URL to a KTX2 file that contains a cube map of the specular lighting and the convoluted specular mipmaps.
Demo:
See:

sphericalHarmonicCoefficients : Array.<Cartesian3>

用于图像基照明散色的第三顺序球形谐波系数. 当 NT 0 未定义 NT 1 , 扩散的辐射 用大气颜色计算.

有9个NT++1+NT+0+NT+2+系数. 系数的顺序为: NT 18 ,0 NT 1 , NT 19 ,-1 NT 3 , NT 20 ,0 NT 5 , NT 21 ,1 NT 7 , NT 22 ,-2 NT 9 , NT 23 ,-1 NT 11 , NT 24 ,0 NT 13 , NT 25 ,1 NT 15 , NT 26 2 NT 17

这些值可以通过使用 cmgen 工具预处理环境映射获得 Google's Filament project. 确定使用 NT 0 - no-mirror NT 1 在 NT 2 cmgen NT 3 中选择.
Demo:
See:
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.