Define EPSILON, since it seems not to be defined by default on all systems. Fixes #48

This commit is contained in:
Blue (Lukas Rieger) 2020-07-02 19:52:28 +02:00
parent 4fbd785b3e
commit 4ea40c7611
2 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@
import { ShaderChunk } from 'three';
const HIRES_VERTEX_SHADER = `
#define EPSILON 1e-6
${ShaderChunk.logdepthbuf_pars_vertex}
attribute float ao;

View File

@ -25,6 +25,7 @@
import { ShaderChunk } from 'three';
const LOWRES_VERTEX_SHADER = `
#define EPSILON 1e-6
${ShaderChunk.logdepthbuf_pars_vertex}
varying vec3 vPosition;