Extensions

Class: ColorLUTFilter

ColorLUTFilter(options)

 Color lookup table filter
   - Remaps colors through a 3D LUT stored as a horizontal strip texture
   - Strip layout: N slices of N x N pixels side by side (N² x N, e.g. 256 x 16 or 1024 x 32),
     red grows to the right inside a slice, green grows along the rows, blue selects the slice
   - The LUT texture must be opaque and keep the TextureInfo defaults
     (LINEAR filtering, CLAMP_TO_EDGE wrapping, no mipmaps)
   - Works on un-premultiplied colors, the alpha is left untouched
   - The intensity is unused, use mix to fade the effect

Constructor

new ColorLUTFilter(options)

Creates an instance of ColorLUTFilter.
Parameters:
Name Type Description
options object
Properties
Name Type Description
texture TextureInfo Required
- LUT strip texture, the shader samples whatever is bound without it
lutSize number Default value 16
- Size of one LUT slice (N)
Source:

Extends

Classes

ColorLUTFilter

Members

centerX :number

Set/Get center x
Type:
  • number
Overrides:
Source:

centerY :number

Set/Get center y
Type:
  • number
Overrides:
Source:

intensity :number

Set/Get intensity
Type:
  • number
Overrides:
Source:

intensityX :number

 Set/Get intensity x
   - Same as intensity
Type:
  • number
Overrides:
Source:

intensityY :number

Set/Get intensity y
Type:
  • number
Overrides:
Source:

invertRadial :boolean

Set/Get invertRadial
Type:
  • boolean
Overrides:
Source:

isRadial :boolean

Set/Get is radial
Type:
  • boolean
Overrides:
Source:

lutSize :number

Set/Get LUT slice size (N)
Type:
  • number
Source:

mix :number

Set/Get mix
Type:
  • number
Overrides:
Source:

roundness :number

Set/Get roundness
Type:
  • number
Overrides:
Source:

size :number

Set/Get size
Type:
  • number
Overrides:
Source:

transition :number

Set/Get transition
Type:
  • number
Overrides:
Source: