BBMOD_LensDistortionEffect

A constructor defined in BBMOD_LensDistortionEffect.gml

Extends BBMOD_PostProcessEffect

new BBMOD_LensDistortionEffect([_strength[, _zoom]])

Description

Barell and pincushion lens distortion (post-processing effect).

Arguments

Name Type Description
_strength Real The strength of the effect. Use positive values for barell distortion and negative for pincushion distortion. Defaults to 0 (no distortion).
_zoom Real Zoom in into the surface. Must be greater than 0! Defaults to 1 (no zoom).

Properties

Name Description
Strength The strength of the effect. Use positive values for barell distortion and negative for pincushion distortion. Default value is 0 (no distortion).
Zoom Zoom in into the surface. Must be greater than 0! Default value is 1 (no zoom).

Inherited properties

Name Description
Enabled If true then the effect is enabled. Default value is true.
PostProcessor The post-processor to which is this effect added or undefined.

Inherited methods

Name Description
destroy Frees memory used by the struct.
draw Applies the effect to given surface.
Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on April 26, 2024 using GMDoc.