From 16fdc64281f1070e7ca1b8d242a91961eac9d941 Mon Sep 17 00:00:00 2001 From: falsycat Date: Mon, 7 Oct 2019 00:00:00 +0000 Subject: [PATCH] [fix] Fixed the wrong gradient formula in BackgroundProgram. --- sjplayer/src/sjplayer/Background.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sjplayer/src/sjplayer/Background.d b/sjplayer/src/sjplayer/Background.d index 99f5560..b2fcd74 100644 --- a/sjplayer/src/sjplayer/Background.d +++ b/sjplayer/src/sjplayer/Background.d @@ -58,7 +58,7 @@ class BackgroundProgram { out vec4 pixel_; void main() { - pixel_ = (outer_color - inner_color)*length(uv_)/sqrt(2) + outer_color; + pixel_ = (outer_color - inner_color)*length(uv_)/sqrt(2) + inner_color; } };