From 11d6cb1ac72a4c6b8ddceff7882bbda5ab8461b4 Mon Sep 17 00:00:00 2001 From: Nils Christian Bonnevie Date: Mon, 8 Jul 2024 12:59:38 +0200 Subject: [PATCH] Changed to low precission for uniform in grid3D layer. --- .../subsurface-viewer/src/layers/grid3d/fragment.fs.glsl.ts | 2 +- .../packages/subsurface-viewer/src/layers/grid3d/vertex.glsl.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/typescript/packages/subsurface-viewer/src/layers/grid3d/fragment.fs.glsl.ts b/typescript/packages/subsurface-viewer/src/layers/grid3d/fragment.fs.glsl.ts index 36d1c3b85..d4570a883 100644 --- a/typescript/packages/subsurface-viewer/src/layers/grid3d/fragment.fs.glsl.ts +++ b/typescript/packages/subsurface-viewer/src/layers/grid3d/fragment.fs.glsl.ts @@ -20,7 +20,7 @@ uniform float colorMapRangeMax; uniform bool isColoringDiscrete; uniform float colorMapSize; -uniform highp int coloringMode; +uniform lowp int coloringMode; uniform vec3 colorMapClampColor; uniform bool isClampColor; diff --git a/typescript/packages/subsurface-viewer/src/layers/grid3d/vertex.glsl.ts b/typescript/packages/subsurface-viewer/src/layers/grid3d/vertex.glsl.ts index 2240cc496..0051796aa 100644 --- a/typescript/packages/subsurface-viewer/src/layers/grid3d/vertex.glsl.ts +++ b/typescript/packages/subsurface-viewer/src/layers/grid3d/vertex.glsl.ts @@ -7,7 +7,7 @@ attribute vec3 positions; attribute float properties; attribute vec3 normals; -uniform int coloringMode; +uniform lowp int coloringMode; // Outputs to fragment shader out vec3 cameraPosition;