sej
    Preparing search index...

    Class WebGLRenderer

    The WebGL renderer displays your beautifully crafted scenes using WebGL.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _camera: Camera
    _renderer: WebGLRenderer
    _scene: Object3D<Object3DEventMap>
    domElement: HTMLCanvasElement

    A Canvas where the renderer draws its output. This is automatically created by the renderer in the constructor (if not provided already); you just need to add it to your page.

    document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' )
    
    freeze: boolean

    If true, the renderer will not render any new frames.

    false
    

    Methods

    • Resizes the output canvas to (width, height), and also sets the viewport to fit that size, starting in (0, 0).

      Parameters

      • width: number
      • height: number
      • OptionalupdateStyle: boolean

      Returns void

    • E2E test method.

      This method should return true if the test passes, and false if it fails. Check the method itself for more information.

      Returns boolean