1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-04 22:04:29 +00:00

shaderslmfao fix

This commit is contained in:
Cameron Taylor 2023-12-18 20:49:01 -05:00
parent 7fcf4c4175
commit 360ba69496
6 changed files with 22 additions and 22 deletions

2
assets

@ -1 +1 @@
Subproject commit c354795f7f560fa096b855c6e6bca745f77fa414
Subproject commit 200fa60dfb116bda6c438b0bb3e9ad541b2180ea

View file

@ -7,7 +7,7 @@ import flixel.graphics.frames.FlxFrame;
import flixel.math.FlxMatrix;
import flixel.math.FlxRect;
import flixel.system.FlxAssets.FlxShader;
import funkin.shaderslmfao.RuntimeCustomBlendShader;
import funkin.graphics.shaders.RuntimeCustomBlendShader;
import openfl.Lib;
import openfl.display.BitmapData;
import openfl.display.BlendMode;

View file

@ -1,4 +1,4 @@
package funkin.shaderslmfao;
package funkin.graphics.shaders;
import flixel.addons.display.FlxRuntimeShader;
import openfl.Assets;

View file

@ -1,4 +1,4 @@
package funkin.shaderslmfao;
package funkin.graphics.shaders;
import openfl.display.BitmapData;
import openfl.display.BlendMode;
@ -6,24 +6,24 @@ import openfl.utils.Assets;
class RuntimeCustomBlendShader extends RuntimePostEffectShader
{
public var source(default, set):BitmapData;
public var source(default, set):BitmapData;
function set_source(value:BitmapData):BitmapData
{
this.setBitmapData("source", value);
return source = value;
}
function set_source(value:BitmapData):BitmapData
{
this.setBitmapData("source", value);
return source = value;
}
public var blend(default, set):BlendMode;
public var blend(default, set):BlendMode;
function set_blend(value:BlendMode):BlendMode
{
this.setInt("blendMode", cast value);
return blend = value;
}
function set_blend(value:BlendMode):BlendMode
{
this.setInt("blendMode", cast value);
return blend = value;
}
public function new()
{
super(Assets.getText("assets/shaders/customBlend.frag"));
}
public function new()
{
super(Assets.getText("assets/shaders/customBlend.frag"));
}
}

View file

@ -1,4 +1,4 @@
package funkin.shaderslmfao;
package funkin.graphics.shaders;
import flixel.FlxCamera;
import flixel.FlxG;

View file

@ -1,4 +1,4 @@
package funkin.shaderslmfao;
package funkin.graphics.shaders;
import flixel.system.FlxAssets.FlxShader;
import openfl.display.BitmapData;