Optional
physics?: { gravity?: [number, number, number] }Physics related settings for the scene.
Optional
gravity?: [number, number, number]An array of 3 numbers that represents the gravity force.
Optional
render?: {Render settings for the scene.
Optional
exposure?: numberThe exposure value tweaks the overall brightness of the scene.
Optional
fog?: numberThe type of fog used in the scene. Can be one of pc.FOG_NONE
, pc.FOG_LINEAR
, pc.FOG_EXP
, pc.FOG_EXP2
.
Optional
fog_color?: [number, number, number]An array of 3 numbers representing the color of the fog.
Optional
fog_density?: numberThe density of the fog. This property is only valid if the fog property is set to pc.FOG_EXP
or pc.FOG_EXP2
.
Optional
fog_end?: numberThe distance from the viewpoint where linear fog reaches its maximum. This property is only valid if the fog property is set to pc.FOG_LINEAR
.
Optional
fog_start?: numberThe distance from the viewpoint where linear fog begins. This property is only valid if the fog property is set to pc.FOG_LINEAR
.
Optional
gamma_correction?: numberThe gamma correction to apply when rendering the scene. Can be one of pc.GAMMA_NONE
, pc.GAMMA_SRGB
.
Optional
global_ambient?: [number, number, number]An array of 3 numbers representing the color of the scene's ambient light.
Optional
lightmapMaxResolution?: numberThe maximum lightmap resolution.
Optional
lightmapMode?: numberThe lightmap baking mode. Can be one of pc.BAKE_COLOR
, pc.BAKE_COLORDIR
.
Optional
lightmapSizeMultiplier?: numberThe lightmap resolution multiplier.
Optional
skybox?: numberThe id
of the cubemap texture to be used as the scene's skybox.
Optional
skyboxIntensity?: numberMultiplier for skybox intensity.
Optional
skyboxMip?: numberThe mip level of the skybox to be displayed. Only valid for prefiltered cubemap skyboxes.
Optional
skyboxRotation?: [number, number, number]An array of 3 numbers representing the rotation of the skybox.
Optional
tonemapping?: numberThe tonemapping transform to apply when writing fragments to the frame buffer. Can be: pc.TONEMAP_LINEAR
, pc.TONEMAP_FILMIC
, pc.TONEMAP_HEJL
, pc.TONEMAP_ACES
.
Represents the settings for the currently loaded scene.