Commit a55eebe7 authored by amandaghassaei's avatar amandaghassaei
Browse files

flat shading on mesh normal material

parent 2c1dcabf
......@@ -23,7 +23,7 @@ function initModel(globals){
function setMeshMaterial() {
if (globals.colorMode == "normal") {
material = new THREE.MeshNormalMaterial({side: THREE.DoubleSide});
material = new THREE.MeshNormalMaterial({shading:THREE.FlatShading, side: THREE.DoubleSide});
object3D2.visible = false;
} else if (globals.colorMode == "axialStrain"){
material = new THREE.MeshBasicMaterial({vertexColors: THREE.VertexColors, side:THREE.DoubleSide});
......
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