mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-23 13:48:23 +00:00
Fix a conflict between a shader variable name and a function on some graphics cards.
This commit is contained in:
parent
1e359030c3
commit
d4f113df59
|
@ -40,8 +40,8 @@ class StrokeShader extends FlxShader
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
vec4 sample = flixel_texture2D(bitmap, openfl_TextureCoordv);
|
vec4 gay = flixel_texture2D(bitmap, openfl_TextureCoordv);
|
||||||
if (sample.a == 0.) {
|
if (gay.a == 0.) {
|
||||||
float w = size.x / openfl_TextureSize.x;
|
float w = size.x / openfl_TextureSize.x;
|
||||||
float h = size.y / openfl_TextureSize.y;
|
float h = size.y / openfl_TextureSize.y;
|
||||||
|
|
||||||
|
@ -49,9 +49,9 @@ class StrokeShader extends FlxShader
|
||||||
|| flixel_texture2D(bitmap, vec2(openfl_TextureCoordv.x - w, openfl_TextureCoordv.y)).a != 0.
|
|| flixel_texture2D(bitmap, vec2(openfl_TextureCoordv.x - w, openfl_TextureCoordv.y)).a != 0.
|
||||||
|| flixel_texture2D(bitmap, vec2(openfl_TextureCoordv.x, openfl_TextureCoordv.y + h)).a != 0.
|
|| flixel_texture2D(bitmap, vec2(openfl_TextureCoordv.x, openfl_TextureCoordv.y + h)).a != 0.
|
||||||
|| flixel_texture2D(bitmap, vec2(openfl_TextureCoordv.x, openfl_TextureCoordv.y - h)).a != 0.)
|
|| flixel_texture2D(bitmap, vec2(openfl_TextureCoordv.x, openfl_TextureCoordv.y - h)).a != 0.)
|
||||||
sample = color;
|
gay = color;
|
||||||
}
|
}
|
||||||
gl_FragColor = sample;
|
gl_FragColor = gay;
|
||||||
}
|
}
|
||||||
')
|
')
|
||||||
public function new(color:FlxColor = 0xFFFFFFFF, width:Float = 1, height:Float = 1)
|
public function new(color:FlxColor = 0xFFFFFFFF, width:Float = 1, height:Float = 1)
|
||||||
|
|
Loading…
Reference in a new issue