function toggleWireframe(materials)
{
    materials["basic"].wireframe = !materials["basic"].wireframe;
    materials["phong"].wireframe = !materials["phong"].wireframe;
    materials["lambert"].wireframe = !materials["lambert"].wireframe;
    materials["basic-textured"].wireframe = !materials["basic-textured"].wireframe;
    materials["phong-textured"].wireframe = !materials["phong-textured"].wireframe;
    materials["lambert-textured"].wireframe = !materials["lambert-textured"].wireframe;
}
/**
 * Changes the material to/from a wireframe
 * @param {Object} materials Object that contains all the materials used in the scene
 */
Changes the material to/from a wireframe
@param {Object} materials Object that contains all the materials used in the scene
Changes the material to / from a wireframe @param { Object } materials Object that contains all the materials used in the scene
function toggleWireframe(materials)
{
    materials["basic"].wireframe = !materials["basic"].wireframe;
    materials["phong"].wireframe = !materials["phong"].wireframe;
    materials["lambert"].wireframe = !materials["lambert"].wireframe;
    materials["basic-textured"].wireframe = !materials["basic-textured"].wireframe;
    materials["phong-textured"].wireframe = !materials["phong-textured"].wireframe;
    materials["lambert-textured"].wireframe = !materials["lambert-textured"].wireframe;
}
function toggleWireframe ( materials ) { materials [ "basic" ] . wireframe = ! materials [ "basic" ] . wireframe ; materials [ "phong" ] . wireframe = ! materials [ "phong" ] . wireframe ; materials [ "lambert" ] . wireframe = ! materials [ "lambert" ] . wireframe ; materials [ "basic-textured" ] . wireframe = ! materials [ "basic-textured" ] . wireframe ; materials [ "phong-textured" ] . wireframe = ! materials [ "phong-textured" ] . wireframe ; materials [ "lambert-textured" ] . wireframe = ! materials [ "lambert-textured" ] . wireframe ; }
Changes the material to/from a wireframe
 @param {Object} materials Object that contains all the materials used in the scene
Changes the material to / from a wireframe @param { Object } materials Object that contains all the materials used in the scene