mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-10 08:44:47 +00:00
26 lines
570 B
Haxe
26 lines
570 B
Haxe
package funkin.graphics.shaders;
|
|
|
|
import flixel.addons.display.FlxRuntimeShader;
|
|
import funkin.Paths;
|
|
import openfl.utils.Assets;
|
|
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);
|
|
}
|
|
}
|