Skip to main content

LineShading

Hierarchy

  • BaseLineShading
    • LineShading

Index

Constructors

constructor

  • Parameters

    • lineThickness: number

    Returns LineShading

Accessors

affectedCameras

  • get affectedCameras(): Set<Camera>
  • Returns a set of all the cameras this post-process effect is attached to.


    Returns Set<Camera>

publiclineThickness

  • get lineThickness(): number
  • set lineThickness(thickness: number): void
  • Returns the current line thickness value.


    Returns number

  • Sets the line thickness and updates the shader with the new value.


    Parameters

    • thickness: number

      Thickness of the lines, value between 0 and 1.

    Returns void

Methods

attach

  • attach(camera: Camera): boolean
  • Runs the initialize method if the post-process has not yet been initialized. Then attaches the post-process effect to the specified camera.


    Parameters

    • camera: Camera

      The camera to attach the post-process effect to.

    Returns boolean

    true if the post-process effect was successfully attached to the camera, otherwise false.

detach

  • detach(camera: Camera): boolean
  • Parameters

    • camera: Camera

    Returns boolean