Skip to content

Commit

Permalink
Merge pull request #8036 from daoshengmu/fixFaceColorInSoftware
Browse files Browse the repository at this point in the history
Fix face.color is undefined in SoftwareRender.drawTriangle
  • Loading branch information
mrdoob committed Jan 29, 2016
2 parents b60f67f + 68a64a7 commit 1287f84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/js/renderers/SoftwareRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,8 @@ THREE.SoftwareRenderer = function ( parameters ) {
mpUV12 = new THREE.Vector2(),
mpUV23 = new THREE.Vector2(),
mpUV31 = new THREE.Vector2(),
tempFace = { vertexNormalsModel : [] };
tempFace = { vertexNormalsModel : []
, color : { r: face.color.r, g: face.color.b, b: face.color.b } };

var weight;

Expand Down

0 comments on commit 1287f84

Please sign in to comment.