/** * @author mr.doob / http://mrdoob.com/ * @author alteredq / http://alteredqualia.com/ * * parameters = { * color: , * map: new THREE.UVMap( ), * opacity: , * blending: THREE.NormalBlending, * wireframe: , * wireframe_linewidth: * } */ THREE.MeshBasicMaterial = function ( parameters ) { this.id = THREE.MeshBasicMaterialCounter.value ++; this.color = new THREE.Color( 0xff0000 ); this.map = null; this.opacity = 1; this.blending = THREE.NormalBlending; this.wireframe = false; this.wireframe_linewidth = 1; if ( parameters ) { if ( parameters.color !== undefined ) this.color.setHex( parameters.color ); if ( parameters.map !== undefined ) this.map = parameters.map; if ( parameters.opacity !== undefined ) this.opacity = parameters.opacity; if ( parameters.blending !== undefined ) this.blending = parameters.blending; if ( parameters.wireframe !== undefined ) this.wireframe = parameters.wireframe; if ( parameters.wireframe_linewidth !== undefined ) this.wireframe_linewidth = parameters.wireframe_linewidth; } this.toString = function () { return 'THREE.MeshBasicMaterial (
' + 'id: ' + this.id + '
' + 'color: ' + this.color + '
' + 'map: ' + this.map + '
' + 'opacity: ' + this.opacity + '
' + 'blending: ' + this.blending + '
' + 'wireframe: ' + this.wireframe + '
' + 'wireframe_linewidth: ' + this.wireframe_linewidth +'
' + ')'; }; } THREE.MeshBasicMaterialCounter = { value: 0 };