mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-30 11:26:53 -05:00
24 lines
461 B
Haxe
24 lines
461 B
Haxe
|
package funkin.shaderslmfao;
|
||
|
|
||
|
import flixel.addons.display.FlxRuntimeShader;
|
||
|
import funkin.Paths;
|
||
|
import openfl.utils.Assets;
|
||
|
import openfl.display.BitmapData;
|
||
|
|
||
|
class BlendModesShader extends FlxRuntimeShader
|
||
|
{
|
||
|
public var camera:BitmapData;
|
||
|
|
||
|
public function new()
|
||
|
{
|
||
|
super(Assets.getText(Paths.frag('blendModes')));
|
||
|
}
|
||
|
|
||
|
public function setCamera(camera:BitmapData):Void
|
||
|
{
|
||
|
this.camera = camera;
|
||
|
|
||
|
this.setBitmapData('camera', camera);
|
||
|
}
|
||
|
}
|