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: src/framework/app-base.js
+31-19Lines changed: 31 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -1386,33 +1386,44 @@ class AppBase extends EventHandler {
1386
1386
* of the scene.
1387
1387
* @param {number|null} [settings.render.skybox] - The asset ID of the cube map texture to be
1388
1388
* used as the scene's skybox. Defaults to null.
1389
-
* @param {number} settings.render.skyboxIntensity - Multiplier for skybox intensity.
1390
-
* @param {number} settings.render.skyboxLuminance - Lux (lm/m^2) value for skybox intensity when physical light units are enabled.
1391
-
* @param {number} settings.render.skyboxMip - The mip level of the skybox to be displayed.
1389
+
* @param {number} [settings.render.skyboxIntensity] - Multiplier for skybox intensity. Defaults to 1.
1390
+
* @param {number} [settings.render.skyboxLuminance] - Lux (lm/m^2) value for skybox intensity when physical light units are enabled. Defaults to 20000.
1391
+
* @param {number} [settings.render.skyboxMip] - The mip level of the skybox to be displayed. Defaults to 0.
1392
1392
* Only valid for prefiltered cubemap skyboxes.
1393
-
* @param {number[]} settings.render.skyboxRotation - Rotation of skybox.
1393
+
* @param {number[]} [settings.render.skyboxRotation] - Rotation of skybox. Defaults to [0, 0, 0].
1394
+
*
1395
+
* @param {string} [settings.render.skyType] - The type of the sky. One of the SKYTYPE_* constants. Defaults to {@link SKYTYPE_INFINITE}.
1396
+
* @param {number[]} [settings.render.skyMeshPosition] - The position of sky mesh. Ignored for {@link SKYTYPE_INFINITE}. Defaults to [0, 0, 0].
1397
+
* @param {number[]} [settings.render.skyMeshRotation] - The rotation of sky mesh. Ignored for {@link SKYTYPE_INFINITE}. Defaults to [0, 0, 0].
1398
+
* @param {number[]} [settings.render.skyMeshScale] - The scale of sky mesh. Ignored for {@link SKYTYPE_INFINITE}. Defaults to [1, 1, 1].
1399
+
* @param {number[]} [settings.render.skyCenter] - The center of the sky. Ignored for {@link SKYTYPE_INFINITE}. Defaults to [0, 1, 0].
1400
+
*
1394
1401
* @param {number} settings.render.lightmapSizeMultiplier - The lightmap resolution multiplier.
1395
1402
* @param {number} settings.render.lightmapMaxResolution - The maximum lightmap resolution.
1396
1403
* @param {number} settings.render.lightmapMode - The lightmap baking mode. Can be:
1397
1404
*
1398
1405
* - {@link BAKE_COLOR}: single color lightmap
1399
1406
* - {@link BAKE_COLORDIR}: single color lightmap + dominant light direction (used for bump/specular)
* @param {boolean} [settings.render.lightingShadowsEnabled] - If set to true, the clustered lighting will support shadows. Defaults to true.
1421
+
* @param {boolean} [settings.render.lightingCookiesEnabled] - If set to true, the clustered lighting will support cookie textures. Defaults to false.
1422
+
* @param {boolean} [settings.render.lightingAreaLightsEnabled] - If set to true, the clustered lighting will support area lights. Defaults to false.
1423
+
* @param {number} [settings.render.lightingShadowAtlasResolution] - Resolution of the atlas texture storing all non-directional shadow textures. Defaults to 2048.
1424
+
* @param {number} [settings.render.lightingCookieAtlasResolution] - Resolution of the atlas texture storing all non-directional cookie textures. Defaults to 2048.
1425
+
* @param {number} [settings.render.lightingMaxLightsPerCell] - Maximum number of lights a cell can store. Defaults to 255.
1426
+
* @param {number} [settings.render.lightingShadowType] - The type of shadow filtering used by all shadows. Can be:
1416
1427
*
1417
1428
* - {@link SHADOW_PCF1_32F}
1418
1429
* - {@link SHADOW_PCF3_32F}
@@ -1421,8 +1432,9 @@ class AppBase extends EventHandler {
1421
1432
* - {@link SHADOW_PCF3_16F}
1422
1433
* - {@link SHADOW_PCF5_16F}
1423
1434
*
1424
-
* @param {Vec3} settings.render.lightingCells - Number of cells along each world space axis the space containing lights
1425
-
* is subdivided into.
1435
+
* Defaults to {@link SHADOW_PCF3_32F}.
1436
+
* @param {number[]} [settings.render.lightingCells] - Number of cells along each world space axis the space containing lights
1437
+
* is subdivided into. Defaults to [10, 3, 10].
1426
1438
*
1427
1439
* Only lights with bakeDir=true will be used for generating the dominant light direction.
0 commit comments