Skip to content

Commit 4ea40c7

Browse files
committed
Define EPSILON, since it seems not to be defined by default on all systems. Fixes #48
1 parent 4fbd785 commit 4ea40c7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

BlueMapCore/src/main/webroot/js/libs/shaders/HiresVertexShader.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import { ShaderChunk } from 'three';
2626

2727
const HIRES_VERTEX_SHADER = `
28+
#define EPSILON 1e-6
2829
${ShaderChunk.logdepthbuf_pars_vertex}
2930
3031
attribute float ao;

BlueMapCore/src/main/webroot/js/libs/shaders/LowresVertexShader.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import { ShaderChunk } from 'three';
2626

2727
const LOWRES_VERTEX_SHADER = `
28+
#define EPSILON 1e-6
2829
${ShaderChunk.logdepthbuf_pars_vertex}
2930
3031
varying vec3 vPosition;

0 commit comments

Comments
 (0)