mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 16:17:53 -05:00
23 lines
439 B
Haxe
23 lines
439 B
Haxe
|
package funkin.shaderslmfao;
|
||
|
|
||
|
import flixel.addons.display.FlxRuntimeShader;
|
||
|
import funkin.Paths;
|
||
|
import openfl.utils.Assets;
|
||
|
|
||
|
class Grayscale extends FlxRuntimeShader
|
||
|
{
|
||
|
public var amount:Float = 1;
|
||
|
|
||
|
public function new(amount:Float = 1)
|
||
|
{
|
||
|
super(Assets.getText(Paths.frag("grayscale")));
|
||
|
setAmount(amount);
|
||
|
}
|
||
|
|
||
|
public function setAmount(value:Float):Void
|
||
|
{
|
||
|
amount = value;
|
||
|
this.setFloat("amount", amount);
|
||
|
}
|
||
|
}
|