new DistortionEffect(renderer:GlRenderer, options:Object)
The Distortion effect has a series of simple distortion effects, ie. it manipulates, broadly, the UV mapping and pixel placements
Effects Example on codepen:
codepen
Distortion effect allows for a series of color Distortion, mostly
mimicing classic mixers like MX50 and V4
1. normal
2. phasing sides
3. multi
4. PiP (Picture in picture)
Parameters:
Name | Type | Description |
---|---|---|
renderer:GlRenderer |
||
options:Object |
- Implements:
- Source:
Example
let myEffect = new DistortionEffect( renderer, { source: myVideoSource, effect: 1 });
Methods
effect(effectnumber)
currentDistortionffect number
Parameters:
Name | Type | Description |
---|---|---|
effectnumber |
Number | CurrentDistortionEffect number 1 |
- Source:
extra(floatValue)
the extra, for several effects, usually between 0 and 1, but go grazy
Parameters:
Name | Type | Description |
---|---|---|
floatValue |
float | between 0 and 1 |
- Source: