swag truthers we are BACK

This commit is contained in:
Cameron Taylor 2024-02-13 03:32:20 -05:00
parent bd4103fd11
commit 923f8f423e
3 changed files with 14 additions and 12 deletions

View file

@ -192,8 +192,8 @@ class FunkinCamera extends FlxCamera
// get the isolated bitmap
final isolated = grabScreen(false, true);
// apply fullscreen blend
customBlendShader.blend = blend;
customBlendShader.source = isolated;
customBlendShader.blendSwag = blend;
customBlendShader.sourceSwag = isolated;
customBlendShader.updateViewInfo(FlxG.width, FlxG.height, this);
applyFilter(customBlendFilter);
}

View file

@ -6,20 +6,22 @@ import openfl.utils.Assets;
class RuntimeCustomBlendShader extends RuntimePostEffectShader
{
public var source(default, set):BitmapData;
// only different name purely for hashlink fix
public var sourceSwag(default, set):BitmapData;
function set_source(value:BitmapData):BitmapData
function set_sourceSwag(value:BitmapData):BitmapData
{
this.setBitmapData("source", value);
return source = value;
this.setBitmapData("sourceSwag", value);
return sourceSwag = value;
}
public var blend(default, set):BlendMode;
// name change make sure it's not the same variable name as whatever is in the shader file
public var blendSwag(default, set):BlendMode;
function set_blend(value:BlendMode):BlendMode
function set_blendSwag(value:BlendMode):BlendMode
{
this.setInt("blendMode", cast value);
return blend = value;
return blendSwag = value;
}
public function new()

View file

@ -94,12 +94,12 @@ class RuntimeRainShader extends RuntimePostEffectShader
return lightMap = value;
}
public var numLights(default, set):Int = 0;
public var numLightsSwag(default, set):Int = 0; // swag heads, we have never been more back (needs different name purely for hashlink casting fix)
function set_numLights(value:Int):Int
function set_numLightsSwag(value:Int):Int
{
this.setInt('numLights', value);
return numLights = value;
return numLightsSwag = value;
}
public function new()