[fix] Fixed the wrong gradient formula in BackgroundProgram.
This commit is contained in:
parent
7ec65a3625
commit
16fdc64281
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user