Commit d16847ce authored by Amanda Ghassaei's avatar Amanda Ghassaei

update to threejs

parent 87ca72af
This diff is collapsed.
This diff is collapsed.
......@@ -98,13 +98,15 @@ function initModel(globals){
}
} else {
material = new THREE.MeshPhongMaterial({
shading:THREE.FlatShading, side:THREE.FrontSide,
flatShading:true,
side:THREE.FrontSide,
polygonOffset: true,
polygonOffsetFactor: polygonOffset, // positive value pushes polygon further away
polygonOffsetUnits: 1
});
material2 = new THREE.MeshPhongMaterial({
shading:THREE.FlatShading, side:THREE.BackSide,
flatShading:true,
side:THREE.BackSide,
polygonOffset: true,
polygonOffsetFactor: polygonOffset, // positive value pushes polygon further away
polygonOffsetUnits: 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment