Skip to content

Commit

Permalink
Merge branch 'stable' of github.com:playcanvas/engine into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
daredevildave committed Jul 22, 2015
2 parents 47897c1 + ae965ac commit 9284fd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/graphics/programlib/chunks/start.frag
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ void main(void) {
data.diffuseLight = vec3(0);
data.specularLight = vec3(0);
data.reflection = vec4(0);
data.specularity = vec3(0);


2 changes: 1 addition & 1 deletion src/graphics/programlib/programlib_phong.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ pc.programlib.phong = {
if (options.cubeMap || options.prefilteredCubemap) options.sphereMap = null; // cubeMaps have higher priority
if (options.dpAtlas) options.sphereMap = options.cubeMap = options.prefilteredCubemap = cubemapReflection = null; // dp has even higher priority
if (!options.useSpecular) options.specularMap = options.glossMap = null;
var needsNormal = lighting || reflections || options.ambientSH;
var needsNormal = lighting || reflections || options.ambientSH || options.prefilteredCubemap;

this.options = options;

Expand Down

0 comments on commit 9284fd8

Please sign in to comment.