1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-15 19:33:36 +00:00
Funkin/source/funkin/graphics/shaders/BlendModesShader.hx

24 lines
521 B
Haxe

package funkin.graphics.shaders;
import flixel.addons.display.FlxRuntimeShader;
import openfl.display.BitmapData;
import openfl.display.ShaderInput;
class BlendModesShader extends FlxRuntimeShader
{
public var camera:ShaderInput<BitmapData>;
public var cameraData:BitmapData;
public function new()
{
super(Assets.getText(Paths.frag('blendModes')));
}
public function setCamera(cameraData:BitmapData):Void
{
this.cameraData = cameraData;
this.setBitmapData('camera', this.cameraData);
}
}