Commit 9e20d8e7 authored by amandaghassaei's avatar amandaghassaei
Browse files

small fix

parent eefcad8d
......@@ -11,7 +11,7 @@ function initModel(globals){
if (globals.colorMode == "normal"){
material = new THREE.MeshNormalMaterial({side: THREE.DoubleSide});
} else {
material = THREE.MeshFaceMaterial([
material = new THREE.MultiMaterial([
new THREE.MeshLambertMaterial({shading:THREE.FlatShading, color:0xff0000, side:THREE.FrontSide}),
new THREE.MeshLambertMaterial({shading:THREE.FlatShading, color:0x0000ff, side:THREE.FrontSide})
]);
......
Supports Markdown
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