- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
import { vertex } from '@tools/fragments';
import fragment from './emboss.frag';
import { Filter } from '@pixi/core';
/**
* An RGB Split Filter.<br>
* 
*
* @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 };