mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 16:17:53 -05:00
25 lines
496 B
Haxe
25 lines
496 B
Haxe
package funkin.shaderslmfao;
|
|
|
|
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);
|
|
}
|
|
}
|