bitbybit.dev v1.0.0-rc.1
    Preparing search index...

    Class BabylonScene

    Index

    Constructors

    background

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

      Parameters

      Returns { backgroundImage: string }

      css background image

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

      Parameters

      Returns { backgroundImage: string }

      two color linear gradient

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

      Parameters

      Returns { backgroundImage: string }

      two color radial gradient

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

      Parameters

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

      multi color linear gradient

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

      Parameters

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

      multi color radial gradient

    • Sets a background image with various customization options for 3D space

      Parameters

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

      background image

    • Changes the scene background colour for 3D space

      Parameters

      Returns void

      colour

    camera

    • Activate camera by overwriting currently active camera

      Parameters

      Returns void

      activate

    • Gets the active camera of the scene

      Returns Camera

      get active camera

    • Adjusts the active arc rotate camera with configuration parameters

      Parameters

      Returns void

      adjust active camera

    environment

    • Clears all of the drawn objects in the 3D scene

      Returns void

      clear all drawn

    • Enables skybox

      Parameters

      Returns void

      skybox

    • Enables skybox with custom texture

      Parameters

      Returns void

      skybox

    • Enables fog mode

      Parameters

      Returns void

      fog

    lights

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

      Parameters

      Returns void

      point

      true

    • Get shadow generators added by light sources through bitbybit

      Returns ShadowGenerator[]

      point

      true

    • Creates and draws a point light in the scene

      Parameters

      Returns PointLight

      BabylonJS point light

      point light

      true

    • Creates and draws a directional light in the scene

      Parameters

      Returns void

      directional

      true

    • Creates and draws a directional light in the scene

      Parameters

      Returns DirectionalLight

      BabylonJS directional light

      directional light

      true

    system