Skip to content

Commit

Permalink
Merge pull request CesiumGS#5885 from AnalyticalGraphicsInc/materials…
Browse files Browse the repository at this point in the history
…-common-shader

Fix shader compilation error in processModelMaterialsCommon
  • Loading branch information
mramato authored Oct 5, 2017
2 parents 60a7d2b + 855df7c commit 9996756
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 9996756

Please sign in to comment.