VCRDistortionEffect
| Kind | class |
| Package | shaders |
| Full name | shaders.VCRDistortionEffect |
| Source | source/shaders/VCRDistortionEffect.hx |
| Extends | Effect |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
shader | VCRDistortionShader | no | new VCRDistortionShader() | — |
Public methods
new (constructor)
function new(glitchFactor:Float, distortion:Bool = true, perspectiveOn:Bool = true, vignetteMoving:Bool = true)
| Parameter | Type | Default |
|---|---|---|
glitchFactor | Float | — |
distortion (optional) | Bool | true |
perspectiveOn (optional) | Bool | true |
vignetteMoving (optional) | Bool | true |
update
function update(elapsed:Float)
| Parameter | Type | Default |
|---|---|---|
elapsed | Float | — |
setVignette
function setVignette(state:Bool)
| Parameter | Type | Default |
|---|---|---|
state | Bool | — |
setPerspective
function setPerspective(state:Bool)
| Parameter | Type | Default |
|---|---|---|
state | Bool | — |
setGlitchModifier
function setGlitchModifier(modifier:Float)
| Parameter | Type | Default |
|---|---|---|
modifier | Float | — |
setDistortion
function setDistortion(state:Bool)
| Parameter | Type | Default |
|---|---|---|
state | Bool | — |
setScanlines
function setScanlines(state:Bool)
| Parameter | Type | Default |
|---|---|---|
state | Bool | — |
setVignetteMoving
function setVignetteMoving(state:Bool)
| Parameter | Type | Default |
|---|---|---|
state | Bool | — |