From 3d3306eff4eacd40da0100ec56450214ac24f5b8 Mon Sep 17 00:00:00 2001 From: rhuitl Date: Wed, 3 Apr 2019 18:15:09 +0200 Subject: [PATCH] fix(point-cloud-material): define MAX_POINT_LIGHTS and MAX_DIR_LIGHTS (#40) Otherwise IE11 fails to compile the shader with "syntax error, unexpected IDENT_TOK". This has been introduced by my changes for https://github.com/pnext/three-loader/pull/38. This solution is not pretty, but the related code in the shader is dead anyways - required uniforms are not in the material (yet?). --- src/materials/point-cloud-material.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/materials/point-cloud-material.ts b/src/materials/point-cloud-material.ts index b6dc7fb..146a09d 100644 --- a/src/materials/point-cloud-material.ts +++ b/src/materials/point-cloud-material.ts @@ -335,6 +335,9 @@ export class PointCloudMaterial extends RawShaderMaterial { define('use_clip_box'); } + define('MAX_POINT_LIGHTS 0'); + define('MAX_DIR_LIGHTS 0'); + parts.push(shaderSrc); return parts.join('\n');