Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BabylonScene

Index

Constructors

constructor

  • Parameters

    • context: Context

    Returns BabylonScene

Methods

activateCamera

  • Activate camera by overwriting currently active camera

    group

    camera

    shortname

    activate

    Parameters

    Returns void

adjustActiveArcRotateCamera

  • Adjusts the active arc rotate camera with configuration parameters

    group

    camera

    shortname

    adjust active camera

    Parameters

    Returns void

backgroundColour

  • Changes the scene background colour for 3D space

    group

    environment

    shortname

    colour

    Parameters

    Returns void

clearAllDrawn

  • clearAllDrawn(): void
  • Clears all of the drawn objects in the 3D scene

    group

    environment

    shortname

    clear all drawn

    Returns void

drawDirectionalLight

  • Creates and draws a directional light in the scene

    group

    lights

    shortname

    directional

    disposableoutput

    true

    Parameters

    Returns DirectionalLight

    BabylonJS directional light

drawDirectionalLightNoReturn

  • Creates and draws a directional light in the scene

    group

    lights

    shortname

    directional

    disposableoutput

    true

    Parameters

    Returns void

drawPointLight

  • Creates and draws a point light in the scene

    group

    lights

    shortname

    point

    disposableoutput

    true

    Parameters

    Returns PointLight

    BabylonJS point light

drawPointLightNoReturn

  • Creates and draws a point light in the scene but does not output anything

    group

    lights

    shortname

    point

    disposableoutput

    true

    Parameters

    Returns void

enableSkybox

  • Enables skybox

    group

    environment

    shortname

    skybox

    Parameters

    Returns void

fog

  • Enables fog mode

    group

    environment

    shortname

    fog

    Parameters

    Returns void

getActiveCamera

  • getActiveCamera(): Camera
  • Gets the active camera of the scene

    group

    camera

    shortname

    get active camera

    Returns Camera

getShadowGenerators

  • getShadowGenerators(): ShadowGenerator[]
  • Get shadow generators added by light sources through bitbybit

    group

    lights

    shortname

    point

    disposableoutput

    true

    Returns ShadowGenerator[]

useRightHandedSystem

  • Use right handed system

    group

    system

    shortname

    hand right

    Parameters

    Returns void

Generated using TypeDoc