From 62bd79e70d833e2116e59e6c81a182d5d713748e Mon Sep 17 00:00:00 2001 From: G <12452268+SpaceXCheeseWheel@users.noreply.github.com> Date: Mon, 5 Oct 2020 21:44:56 -0700 Subject: [PATCH] Remove AsciiArt shader This shader has been rendered nonfunctional due to the removal of the function SampleFontLocation, which was never implemented in VideoCommon. The last reference to SampleFontLocation was located in the OGL video backend. It was removed in this commit: https://github.com/dolphin-emu/dolphin/commit/f039149198657c1891e1c6462ed30c31ed4b8486#diff-24125a6c968a8aca9cadd977d4b9d68f, where many functions were moved to video common, among other things. This shader should be removed so it does not confuse users with the error that it causes. Alternatively, it could be rewritten so it is compatible with modern versions of Dolphin. I am not familiar with GLSL, so this is currently beyond my skill set. --- Data/Sys/Shaders/asciiart.glsl | 91 ---------------------------------- 1 file changed, 91 deletions(-) delete mode 100644 Data/Sys/Shaders/asciiart.glsl diff --git a/Data/Sys/Shaders/asciiart.glsl b/Data/Sys/Shaders/asciiart.glsl deleted file mode 100644 index 52fec3da6d..0000000000 --- a/Data/Sys/Shaders/asciiart.glsl +++ /dev/null @@ -1,91 +0,0 @@ -const int char_width = 8; -const int char_height = 13; -const int char_count = 95; -const int char_pixels = char_width*char_height; -const float2 char_dim = float2(char_width, char_height); -const float2 font_scale = float2(1.0/float(char_width)/float(char_count), 1.0/float(char_height)); - -void main() -{ - float2 char_pos = floor(GetCoordinates()*GetResolution()/char_dim); - float2 pixel_offset = floor(GetCoordinates()*GetResolution()) - char_pos*char_dim; - - // just a big number - float mindiff = float(char_width*char_height) * 100.0; - - float minc = 0.0; - float4 mina = float4(0.0, 0.0, 0.0, 0.0); - float4 minb = float4(0.0, 0.0, 0.0, 0.0); - - for (int i=0; i