A ColorMatrix filer that applies color correction depending on the masked area.
Uses masked objects red*alpha
channels to determine the transition from original color and transformed color.
Hacking: Through accessing color matrix shader directly via @:privateAccess ambient.pass.shader.maskChannel
it's possible to modify which channels affect the resulting transition value.
See also:
Constructor
new(mask:Object, ?m:Matrix)
Create new Ambient filter.
Parameters:
mask | An |
---|---|
m | The color matrix that is applied to the area dictated by |
Variables
invert:Bool
Whether to apply ambient color correction inside masked (when enabled) area or outside of it (when disabled).