[fix] Fixed the wrong gradient formula in BackgroundProgram.

This commit is contained in:
falsycat 2019-10-07 00:00:00 +00:00
parent 7ec65a3625
commit 16fdc64281

View File

@ -58,7 +58,7 @@ class BackgroundProgram {
out vec4 pixel_; out vec4 pixel_;
void main() { void main() {
pixel_ = (outer_color - inner_color)*length(uv_)/sqrt(2) + outer_color; pixel_ = (outer_color - inner_color)*length(uv_)/sqrt(2) + inner_color;
} }
}; };