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 03:03:11 -05:00
import openfl.display.ShaderInput;
class BlendModesShader extends FlxRuntimeShader
{
2024-02-13 03:03:11 -05:00
public var camera:ShaderInput<BitmapData>;
public var cameraData:BitmapData;
public function new()
{
super(Assets.getText(Paths.frag('blendModes')));
}
2024-02-13 03:03:11 -05:00
public function setCamera(cameraData:BitmapData):Void
{
2024-02-13 03:03:11 -05:00
this.cameraData = cameraData;
2024-02-13 03:03:11 -05:00
this.setBitmapData('camera', this.cameraData);
}
}