Skip to content

Commit

Permalink
Fix shader compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Oct 5, 2017
1 parent 60a7d2b commit 855df7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ define([
} else {
fragmentLightingBlock += ' vec3 l = vec3(0.0, 0.0, 1.0);\n';
}
var minimumLighting = optimizeForCesium ? 0.2 : 0.0;
var minimumLighting = optimizeForCesium ? '0.2' : '0.0'; // Use strings instead of values as 0.0 -> 0 when stringified
fragmentLightingBlock += ' diffuseLight += vec3(1.0, 1.0, 1.0) * max(dot(normal,l), ' + minimumLighting + ');\n';

if (hasSpecular) {
Expand Down

0 comments on commit 855df7c

Please sign in to comment.