Skip to content

Commit

Permalink
fix4
Browse files Browse the repository at this point in the history
  • Loading branch information
guycalledfrank committed Jun 25, 2015
1 parent 448d5fe commit 0398a24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scene/scene_phongmaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -902,8 +902,8 @@ pc.extend(pc, function () {
});

_defineObject(obj, "cubeMapProjectionBox", function (mat, val, changeMat) {
var bmin = changeMat? this.cubeMapMinUniform : new Float32Array(3);
var bmax = changeMat? this.cubeMapMaxUniform : new Float32Array(3);
var bmin = changeMat? mat.cubeMapMinUniform : new Float32Array(3);
var bmax = changeMat? mat.cubeMapMaxUniform : new Float32Array(3);

bmin[0] = val.center.x - val.halfExtents.x;
bmin[1] = val.center.y - val.halfExtents.y;
Expand Down

0 comments on commit 0398a24

Please sign in to comment.