From 8dae1792e5514895ef1a825e57eeea7338ba6af9 Mon Sep 17 00:00:00 2001 From: gbrochar Date: Mon, 23 Nov 2020 20:50:43 +0100 Subject: [PATCH] precision android --- src/client/main.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/client/main.ts b/src/client/main.ts index 5d4134b..54fcd10 100644 --- a/src/client/main.ts +++ b/src/client/main.ts @@ -32,9 +32,9 @@ function main() { uniform mat4 uviewMatrix; uniform mat4 umodelMatrix; - varying lowp vec4 vColor; - varying lowp vec4 vNormal; - varying lowp vec3 vPosition; + varying highp vec4 vColor; + varying highp vec4 vNormal; + varying highp vec3 vPosition; void main() { gl_Position = uProjectionMatrix * @@ -48,11 +48,11 @@ function main() { `; const fsSource = ` - precision mediump float; + precision highp float; - varying lowp vec4 vColor; - varying lowp vec4 vNormal; - varying lowp vec3 vPosition; + varying highp vec4 vColor; + varying highp vec4 vNormal; + varying highp vec3 vPosition; vec3 extremize(vec3 v, float n) { if (v.x > n / 2.)