Skip to content

Commit

Permalink
fix(point-cloud-material): define MAX_POINT_LIGHTS and MAX_DIR_LIGHTS (
Browse files Browse the repository at this point in the history
…#40)

Otherwise IE11 fails to compile the shader with "syntax error, unexpected IDENT_TOK".

This has been introduced by my changes for #38.

This solution is not pretty, but the related code in the shader is dead anyways - required uniforms are not in the material (yet?).
  • Loading branch information
rhuitl authored and Hugo Campos committed Apr 3, 2019
1 parent b0da9f0 commit 3d3306e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/materials/point-cloud-material.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 3d3306e

Please sign in to comment.