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

    background

    shortname

    colour

    Parameters

    Returns void

canvasBackgroundImage

  • canvasBackgroundImage(inputs: SceneCanvasBackgroundImageDto): { backgroundAttachment: string; backgroundClip: string; backgroundImage: string; backgroundOrigin: string; backgroundPosition: string; backgroundRepeat: string; backgroundSize: string }
  • Sets a background image with various customization options for 3D space

    group

    background

    shortname

    background image

    Parameters

    Returns { backgroundAttachment: string; backgroundClip: string; backgroundImage: string; backgroundOrigin: string; backgroundPosition: string; backgroundRepeat: string; backgroundSize: string }

    • backgroundAttachment: string
    • backgroundClip: string
    • backgroundImage: string
    • backgroundOrigin: string
    • backgroundPosition: string
    • backgroundRepeat: string
    • backgroundSize: string

canvasCSSBackgroundImage

  • Changes the scene background to a css background image for 3D space

    group

    background

    shortname

    css background image

    Parameters

    Returns { backgroundImage: string }

    • backgroundImage: string

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 light

    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 light

    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

enableSkyboxCustomTexture

  • Enables skybox with custom texture

    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[]

multiColorLinearGradientBackground

  • Creates a multi-color linear gradient background for 3D space

    group

    background

    shortname

    multi color linear gradient

    Parameters

    Returns { backgroundImage: string } | { error: string }

multiColorRadialGradientBackground

  • Creates a multi-color radial gradient background for 3D space

    group

    background

    shortname

    multi color radial gradient

    Parameters

    Returns { backgroundImage: string } | { error: string }

twoColorLinearGradientBackground

  • Creates a two-color linear gradient background for 3D space

    group

    background

    shortname

    two color linear gradient

    Parameters

    Returns { backgroundImage: string }

    • backgroundImage: string

twoColorRadialGradientBackground

  • Creates a two-color radial gradient background for 3D space

    group

    background

    shortname

    two color radial gradient

    Parameters

    Returns { backgroundImage: string }

    • backgroundImage: string

useRightHandedSystem

  • Use right handed system

    group

    system

    shortname

    hand right

    Parameters

    Returns void

Generated using TypeDoc