Options
All
  • Public
  • Public/Protected
  • All
Menu

BABYLON.JS Chromatic Aberration GLSL Shader Author: Olivier Guyot Separates very slightly R, G and B colors on the edges of the screen Inspired by Francois Tarlier & Martins Upitis

Hierarchy

Index

Constructors

  • Parameters

    • name: string

      The rendering pipeline name

    • parameters: any

      An object containing all parameters (see above)

    • scene: Scene

      The scene linked to this pipeline

    • Optional ratio: number

      The size of the postprocesses (0.5 means that your postprocess will have a width = canvas.width 0.5 and a height = canvas.height 0.5)

    • Optional cameras: Camera[]

      The array of cameras that the rendering pipeline will be attached to

    Returns LensRenderingPipeline

Properties

inspectableCustomProperties: IInspectable[]

List of inspectable custom properties (used by the Inspector)

see

https://doc.babylonjs.com/toolsAndResources/inspector#extensibility

Accessors

  • get blurNoise(): boolean
  • set blurNoise(value: boolean): void
  • Gets or sets a boolean indicating if blur noise is enabled

    Returns boolean

  • Gets or sets a boolean indicating if blur noise is enabled

    Parameters

    • value: boolean

    Returns void

  • Gets the list of attached cameras

    Returns Camera[]

  • get chromaticAberration(): number
  • set chromaticAberration(value: number): void
  • Gets or sets the chromatic aberration amount

    Returns number

  • Gets or sets the chromatic aberration amount

    Parameters

    • value: number

    Returns void

  • get darkenOutOfFocus(): number
  • set darkenOutOfFocus(value: number): void
  • Gets or sets the darken out of focus amount

    Returns number

  • Gets or sets the darken out of focus amount

    Parameters

    • value: number

    Returns void

  • get dofAperture(): number
  • set dofAperture(value: number): void
  • Gets or sets the depth of field aperture

    Returns number

  • Gets or sets the depth of field aperture

    Parameters

    • value: number

    Returns void

  • get dofDistortion(): number
  • set dofDistortion(value: number): void
  • Gets or sets the depth of field distortion

    Returns number

  • Gets or sets the depth of field distortion

    Parameters

    • value: number

    Returns void

  • get edgeBlur(): number
  • set edgeBlur(value: number): void
  • Gets or sets the edge blur

    Returns number

  • Gets or sets the edge blur

    Parameters

    • value: number

    Returns void

  • get edgeDistortion(): number
  • set edgeDistortion(value: number): void
  • Gets or sets the edge distortion

    Returns number

  • Gets or sets the edge distortion

    Parameters

    • value: number

    Returns void

  • get grainAmount(): number
  • set grainAmount(value: number): void
  • Gets or sets the grain amount

    Returns number

  • Gets or sets the grain amount

    Parameters

    • value: number

    Returns void

  • get highlightsGain(): number
  • set highlightsGain(value: number): void
  • Gets or sets the highlight grain amount

    Returns number

  • Gets or sets the highlight grain amount

    Parameters

    • value: number

    Returns void

  • get highlightsThreshold(): number
  • set highlightsThreshold(value: number): void
  • Gets or sets the highlight threshold

    Returns number

  • Gets or sets the highlight threshold

    Parameters

    • value: number

    Returns void

  • get isSupported(): boolean
  • If all the render effects in the pipeline are supported

    Returns boolean

  • get name(): string
  • Gets pipeline name

    Returns string

  • get pentagonBokeh(): boolean
  • set pentagonBokeh(value: boolean): void
  • Gets or sets a boolean indicating if pentagon bokeh is enabled

    Returns boolean

  • Gets or sets a boolean indicating if pentagon bokeh is enabled

    Parameters

    • value: boolean

    Returns void

  • Gets associated scene

    Returns Scene

Methods

  • disableChromaticAberration(): void
  • Sets chromatic aberration amount to 0

    Returns void

  • disableDepthOfField(): void
  • Disables depth of field

    Returns void

  • disableEdgeBlur(): void
  • Sets edge blur to 0

    Returns void

  • disableEdgeDistortion(): void
  • Sets edge distortion to 0

    Returns void

  • disableGrain(): void
  • Set grain amount to 0

    Returns void

  • disableHighlights(): void
  • Disables highlights

    Returns void

  • disableNoiseBlur(): void
  • Disables noise blur

    Returns void

  • disablePentagonBokeh(): void
  • Disables the pentagon bokeh effect

    Returns void

  • dispose(disableDepthRender?: boolean): void
  • Removes the internal pipeline assets and detaches the pipeline from the scene cameras

    Parameters

    • Optional disableDepthRender: boolean

      If the scene's depth rendering should be disabled (default: false)

    Returns void

  • enableNoiseBlur(): void
  • Enables noise blur

    Returns void

  • enablePentagonBokeh(): void
  • Creates a pentagon bokeh effect

    Returns void

  • getClassName(): string
  • setAperture(amount: number): void
  • Sets the Aperture amount

    Parameters

    • amount: number

      amount of Aperture

    Returns void

  • setChromaticAberration(amount: number): void
  • Sets the chromatic aberration amount

    Parameters

    • amount: number

      amount of chromatic aberration

    Returns void

  • setDarkenOutOfFocus(amount: number): void
  • Sets the DarkenOutOfFocus amount

    Parameters

    • amount: number

      amount of DarkenOutOfFocus

    Returns void

  • setEdgeBlur(amount: number): void
  • Sets the amount of blur at the edges

    Parameters

    • amount: number

      blur amount

    Returns void

  • setEdgeDistortion(amount: number): void
  • Sets the EdgeDistortion amount

    Parameters

    • amount: number

      amount of EdgeDistortion

    Returns void

  • setFocusDistance(amount: number): void
  • Sets the FocusDistance amount

    Parameters

    • amount: number

      amount of FocusDistance

    Returns void

  • setGrainAmount(amount: number): void
  • Sets the amount of grain

    Parameters

    • amount: number

      Amount of grain

    Returns void

  • setHighlightsGain(amount: number): void
  • Sets the HighlightsGain amount

    Parameters

    • amount: number

      amount of HighlightsGain

    Returns void

  • setHighlightsThreshold(amount: number): void
  • Sets the HighlightsThreshold amount

    Parameters

    • amount: number

      amount of HighlightsThreshold

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme