Chrome only! Firefox will work if this ticket is fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=1134512.
How to use it:
Open your console and type console.log( cube.material )
or console.log( new THREE.MeshNormalMaterial() )
.
Try modifying cube.material properties and console.log the material again.
Here are some examples:
cube.material.shininess = 10 + Math.random() * 100; console.log( cube.material )
cube.material.color.setRGB( .5 + .5 * Math.random(), .5 + .5 * Math.random(), .5 + .5 * Math.random() ); console.log( cube.material )
var s = Math.random(); cube.material.normalScale.set( s, s ); console.log( cube.material )
Hint: You can also click on these commands to run them on the console.