diff --git a/client/renderers/EGL/shader/splash_bg.frag b/client/renderers/EGL/shader/splash_bg.frag index cff04f20..f5b5e6db 100644 --- a/client/renderers/EGL/shader/splash_bg.frag +++ b/client/renderers/EGL/shader/splash_bg.frag @@ -7,6 +7,6 @@ uniform sampler2D sampler1; void main() { - highp float d = 1.0 - sqrt(pos.x * pos.x + pos.y * pos.y) / 2.0; - color = vec4(0.234375 * d, 0.015625f * d, 0.425781f * d, 1); + highp float d = 1.0 - 0.5 * length(pos.xy); + color = vec4(0.234375 * d, 0.015625 * d, 0.425781 * d, 1.0); } diff --git a/client/renderers/EGL/shader/splash_bg.vert b/client/renderers/EGL/shader/splash_bg.vert index c863e2ed..c145173c 100644 --- a/client/renderers/EGL/shader/splash_bg.vert +++ b/client/renderers/EGL/shader/splash_bg.vert @@ -3,7 +3,6 @@ layout(location = 0) in vec3 vertexPosition_modelspace; out highp vec3 pos; -out highp float a; void main() {