1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-11 16:05:02 +00:00
Funkin/source/funkin/graphics/shaders/BlendModesShader.hx

26 lines
570 B
Haxe
Raw Normal View History

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