Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CameraEnvironmentMap

Index

Constructors

Accessors

Methods

Constructors

constructor

  • Constructs a new Camera Environment Map.

    Parameters

    • zapparCamera: Camera

      The Zappar camera.

    • engine: Engine

      The Babylon engine.

    • size: number = 256

      Defines the texture resolution (for each face)

    • refreshRate: number = ...

      Sets the refresh rate to use (RenderTargetTexture.REFRESHRATE_RENDER_ONEVERYFRAME by default).

    Returns CameraEnvironmentMap

Accessors

cubeTexture

  • get cubeTexture(): BaseTexture
  • Returns BaseTexture

    The resulting map texture. Set this as your scene.environmentTexture or as a material's environmentTexture.

Methods

dispose

  • dispose(): void

update

  • update(): void
  • Update the contents of the environment map with the latest texture from the camera.

    Call this each frame after you call update on your Zappar camera, but before you render the scene.

    Returns void

Legend

  • Constructor
  • Property
  • Method

Generated using TypeDoc