mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-08-20 07:25:59 +00:00
shaderslmfao fix
This commit is contained in:
parent
7fcf4c4175
commit
360ba69496
2
assets
2
assets
|
@ -1 +1 @@
|
|||
Subproject commit c354795f7f560fa096b855c6e6bca745f77fa414
|
||||
Subproject commit 200fa60dfb116bda6c438b0bb3e9ad541b2180ea
|
|
@ -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;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package funkin.shaderslmfao;
|
||||
package funkin.graphics.shaders;
|
||||
|
||||
import flixel.addons.display.FlxRuntimeShader;
|
||||
import openfl.Assets;
|
||||
|
|
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package funkin.shaderslmfao;
|
||||
package funkin.graphics.shaders;
|
||||
|
||||
import flixel.FlxCamera;
|
||||
import flixel.FlxG;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package funkin.shaderslmfao;
|
||||
package funkin.graphics.shaders;
|
||||
|
||||
import flixel.system.FlxAssets.FlxShader;
|
||||
import openfl.display.BitmapData;
|
||||
|
|
Loading…
Reference in a new issue