Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IEnvironmentHelperOptions

Represents the different options available during the creation of a Environment helper.

This can control the default ground, skybox and image processing setup of your scene.

Hierarchy

  • IEnvironmentHelperOptions

Index

Properties

backgroundYRotationSearch playground for backgroundYRotation

backgroundYRotation: number

The background rotation around the Y axis of the scene. This helps aligning the key lights of your scene with the background. 0 by default.

cameraContrastSearch playground for cameraContrast

cameraContrast: number

The value of the contrast to apply to the scene. 1.6 by default if setupImageProcessing is true.

cameraExposureSearch playground for cameraExposure

cameraExposure: number

The value of the exposure to apply to the scene. 0.6 by default if setupImageProcessing is true.

createGroundSearch playground for createGround

createGround: boolean

Specifies whether or not to create a ground. True by default.

createSkyboxSearch playground for createSkybox

createSkybox: boolean

Specifies whether or not to create a skybox. True by default.

enableGroundMirrorSearch playground for enableGroundMirror

enableGroundMirror: boolean

Creates a mirror texture attach to the ground. false by default.

enableGroundShadowSearch playground for enableGroundShadow

enableGroundShadow: boolean

Enables the ground to receive shadows. True by default.

environmentTextureSearch playground for environmentTexture

environmentTexture: string | BaseTexture

The texture used as your environment texture in the scene. Comes from the BabylonJS CDN by default and in use if setupImageProcessing is true.

Remarks: Can be either a texture or a url.

groundColorSearch playground for groundColor

groundColor: Color3

The color mixed in the ground texture by default. BabylonJS clearColor by default.

groundMirrorAmountSearch playground for groundMirrorAmount

groundMirrorAmount: number

Specifies the ground mirror visibility amount. 1 by default

groundMirrorBlurKernelSearch playground for groundMirrorBlurKernel

groundMirrorBlurKernel: number

Specifies the ground mirror blur kernel size. 64 by default.

groundMirrorFallOffDistanceSearch playground for groundMirrorFallOffDistance

groundMirrorFallOffDistance: number

Specifies the ground mirror Falloff distance. This can helps reducing the size of the reflection. 0 by Default.

groundMirrorFresnelWeightSearch playground for groundMirrorFresnelWeight

groundMirrorFresnelWeight: number

Specifies the ground mirror reflectance weight. This uses the standard weight of the background material to setup the fresnel effect of the mirror. 1 by default.

groundMirrorSizeRatioSearch playground for groundMirrorSizeRatio

groundMirrorSizeRatio: number

Specifies the ground mirror size ratio. 0.3 by default as the default kernel is 64.

groundMirrorTextureTypeSearch playground for groundMirrorTextureType

groundMirrorTextureType: number

Specifies the ground mirror texture type. Unsigned Int by Default.

groundOpacitySearch playground for groundOpacity

groundOpacity: number

Specifies the ground opacity. 1 by default.

groundShadowLevelSearch playground for groundShadowLevel

groundShadowLevel: number

Helps preventing the shadow to be fully black on the ground. 0.5 by default.

groundSizeSearch playground for groundSize

groundSize: number

Specifies the ground size. 15 by default.

groundTextureSearch playground for groundTexture

groundTexture: string | BaseTexture

The texture used on the ground for the main color. Comes from the BabylonJS CDN by default.

Remarks: Can be either a texture or a url.

groundYBiasSearch playground for groundYBias

groundYBias: number

Specifies a bias applied to the ground vertical position to prevent z-fighting with the shown objects.

rootPositionSearch playground for rootPosition

rootPosition: Vector3

Default position of the rootMesh if autoSize is not true.

setupImageProcessingSearch playground for setupImageProcessing

setupImageProcessing: boolean

Sets up the image processing in the scene. true by default.

sizeAutoSearch playground for sizeAuto

sizeAuto: boolean

Compute automatically the size of the elements to best fit with the scene.

skyboxColorSearch playground for skyboxColor

skyboxColor: Color3

The color mixed in the skybox texture by default. BabylonJS clearColor by default.

skyboxSizeSearch playground for skyboxSize

skyboxSize: number

Specifies the skybox size. 20 by default.

skyboxTextureSearch playground for skyboxTexture

skyboxTexture: string | BaseTexture

The texture used on the skybox for the main color. Comes from the BabylonJS CDN by default.

Remarks: Can be either a texture or a url.

toneMappingEnabledSearch playground for toneMappingEnabled

toneMappingEnabled: boolean

Specifies whether or not tonemapping should be enabled in the scene. true by default if setupImageProcessing is true.

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method