diff --git a/BlueMapCore/src/main/webroot/js/libs/shaders/HiresVertexShader.js b/BlueMapCore/src/main/webroot/js/libs/shaders/HiresVertexShader.js index 0feab341..e0f1cfe1 100644 --- a/BlueMapCore/src/main/webroot/js/libs/shaders/HiresVertexShader.js +++ b/BlueMapCore/src/main/webroot/js/libs/shaders/HiresVertexShader.js @@ -25,6 +25,7 @@ import { ShaderChunk } from 'three'; const HIRES_VERTEX_SHADER = ` +#define EPSILON 1e-6 ${ShaderChunk.logdepthbuf_pars_vertex} attribute float ao; diff --git a/BlueMapCore/src/main/webroot/js/libs/shaders/LowresVertexShader.js b/BlueMapCore/src/main/webroot/js/libs/shaders/LowresVertexShader.js index ae9a4485..8cd668f5 100644 --- a/BlueMapCore/src/main/webroot/js/libs/shaders/LowresVertexShader.js +++ b/BlueMapCore/src/main/webroot/js/libs/shaders/LowresVertexShader.js @@ -25,6 +25,7 @@ import { ShaderChunk } from 'three'; const LOWRES_VERTEX_SHADER = ` +#define EPSILON 1e-6 ${ShaderChunk.logdepthbuf_pars_vertex} varying vec3 vPosition;