You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Source/Scene/Model.js
+11-5
Original file line number
Diff line number
Diff line change
@@ -1160,6 +1160,7 @@ define([
1160
1160
*
1161
1161
* @memberof Model.prototype
1162
1162
*
1163
+
* @demo {@link https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Image-Based Lighting.html|Sandcastle Image Based Lighting Demo}
1163
1164
* @type {Number}
1164
1165
* @default 1.0
1165
1166
*/
@@ -1178,18 +1179,22 @@ define([
1178
1179
},
1179
1180
1180
1181
/**
1181
-
* The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. When <code>undefined</code>, <code>diffuseIrradiance</code>
1182
-
* will be used.
1182
+
* The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. When <code>undefined</code>, a diffuse irradiance
1183
+
* computed from the atmosphere color is used.
1183
1184
* <p>
1184
1185
* There are nine <code>Cartesian3</code> coefficients.
1185
-
* The order of the coefficients is: L<sub>00</sub>, L<sub>1-1</sub>, L<sub>10</sub>, L<sub>11</sub>, L<sub>2-2</sub>, L<sub>2-1</sub>, L<sub>20</sub>, L<sub>21<sub>, L<sub>22</sub>
1186
+
* The order of the coefficients is: L<sub>00</sub>, L<sub>1-1</sub>, L<sub>10</sub>, L<sub>11</sub>, L<sub>2-2</sub>, L<sub>2-1</sub>, L<sub>20</sub>, L<sub>21</sub>, L<sub>22</sub>
1186
1187
* </p>
1187
1188
*
1189
+
* These values can be obtained by preprocessing the environment map using the <code>cmgen</code> tool of
1190
+
* {@link https://github.com/google/filament/releases | Google's Filament project}. This will also generate a KTX file that can be
1191
+
* supplied to {@link Model#specularEnvironmentMaps}.
1192
+
*
1188
1193
* @memberof Model.prototype
1189
1194
*
1190
1195
* @type {Cartesian3[]}
1191
1196
* @default undefined
1192
-
*
1197
+
*@demo {@link https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Image-Based Lighting.html|Sandcastle Image Based Lighting Demo}
1193
1198
* @see {@link https://graphics.stanford.edu/papers/envmap/envmap.pdf|An Efficient Representation for Irradiance Environment Maps}
1194
1199
*/
1195
1200
sphericalHarmonicCoefficients : {
@@ -1211,8 +1216,9 @@ define([
1211
1216
* A URL to a KTX file that contains a cube map of the specular lighting and the convoluted specular mipmaps.
1212
1217
*
1213
1218
* @memberof Model.prototype
1214
-
*
1219
+
*@demo {@link https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Image-Based Lighting.html|Sandcastle Image Based Lighting Demo}
0 commit comments