import { vertex } from '@tools/fragments';
import fragment from './emboss.frag';
import { Filter } from '@pixi/core';

/**
 * An RGB Split Filter.<br>
 * ![original](../tools/screenshots/dist/original.png)![filter](../tools/screenshots/dist/emboss.png)
 *
 * @class
 * @extends PIXI.Filter
 * @memberof PIXI.filters
 * @see @pixi/filter-emboss
 * @see pixi-filters
 */
class EmbossFilter extends Filter
{
    /**
     * @param {number} [strength=5] - Strength of the emboss.
     */
    constructor(strength = 5)
    {
        super(vertex, fragment);
        this.strength = strength;
    }

    /**
     * Strength of emboss.
     */
    get strength(): number
    {
        return this.uniforms.strength;
    }
    set strength(value: number)
    {
        this.uniforms.strength = value;
    }
}

export { EmbossFilter };
Powered by webdoc!