mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-30 16:56:47 +00:00
26 lines
501 B
Haxe
26 lines
501 B
Haxe
package funkin.graphics.shaders;
|
|
|
|
import flixel.addons.display.FlxRuntimeShader;
|
|
import funkin.Paths;
|
|
import openfl.utils.Assets;
|
|
|
|
/**
|
|
* Note... not actually gaussian!
|
|
*/
|
|
class GaussianBlurShader extends FlxRuntimeShader
|
|
{
|
|
public var amount:Float;
|
|
|
|
public function new(amount:Float = 1.0)
|
|
{
|
|
super(Assets.getText(Paths.frag("gaussianBlur")));
|
|
setAmount(amount);
|
|
}
|
|
|
|
public function setAmount(value:Float):Void
|
|
{
|
|
this.amount = value;
|
|
this.setFloat("_amount", amount);
|
|
}
|
|
}
|