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;