From 097dbf5bb4346d431d8ca9f0ec4bc5b5e6f4523f Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Mon, 30 Sep 2024 19:40:02 -0400 Subject: [PATCH] feat: Added InverseDotsShader that emulates flash selections --- .../funkin/graphics/shaders/InverseDotsShader.hx | 14 ++++++++++++++ source/funkin/ui/title/TitleState.hx | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 source/funkin/graphics/shaders/InverseDotsShader.hx diff --git a/source/funkin/graphics/shaders/InverseDotsShader.hx b/source/funkin/graphics/shaders/InverseDotsShader.hx new file mode 100644 index 000000000..fa43d3cbd --- /dev/null +++ b/source/funkin/graphics/shaders/InverseDotsShader.hx @@ -0,0 +1,14 @@ +package funkin.graphics.shaders; + +import flixel.addons.display.FlxRuntimeShader; + +/** + * Create a little dotting effect. + */ +class InverseDotsShader extends FlxRuntimeShader +{ + public function new() + { + super(Assets.getText(Paths.frag("InverseDots"))); + } +} diff --git a/source/funkin/ui/title/TitleState.hx b/source/funkin/ui/title/TitleState.hx index 839992eea..f5277c7b9 100644 --- a/source/funkin/ui/title/TitleState.hx +++ b/source/funkin/ui/title/TitleState.hx @@ -148,9 +148,9 @@ class TitleState extends MusicBeatState // maskShader.frameUV = gfDance.frame.uv; // gfDance.shader = maskShader; - gfDance.shader = swagShader.shader; + // gfDance.shader = swagShader.shader; - // gfDance.shader = new TitleOutline(); + gfDance.shader = new TitleOutline(); add(logoBl);