Skip to content

Commit

Permalink
Merge pull request #5773 from AnalyticalGraphicsInc/phong-fix
Browse files Browse the repository at this point in the history
Fix specular flickering in processModelMaterialsCommon
  • Loading branch information
lilleyse authored Aug 24, 2017
2 parents 06e1ae1 + 8d01bfa commit bb2413b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Change Log
* Fixed a bug that caused imagery splitting to work incorrectly when CSS pixels were not equivalent to WebGL drawing buffer pixels, such as on high DPI displays in Microsoft Edge and Internet Explorer.
* Added `Cesium3DTileset.loadJson` to support overriding the default tileset loading behavior. [#5685](https://github.com/AnalyticalGraphicsInc/cesium/pull/5685)
* Fixed loading of binary glTFs containing CRN or KTX textures. [#5753](https://github.com/AnalyticalGraphicsInc/cesium/pull/5753)
* Fixed specular computation for certain models using the `KHR_materials_common` extension. [#5773](https://github.com/AnalyticalGraphicsInc/cesium/pull/5773)

### 1.36 - 2017-08-01

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,8 @@ define([
}

var hasSpecular = hasNormals && ((lightingModel === 'BLINN') || (lightingModel === 'PHONG')) &&
defined(techniqueParameters.specular) && defined(techniqueParameters.shininess);
defined(techniqueParameters.specular) && defined(techniqueParameters.shininess) &&
(techniqueParameters.shininess > 0.0);

// Generate lighting code blocks
var hasNonAmbientLights = false;
Expand Down

0 comments on commit bb2413b

Please sign in to comment.