MeshBasicMaterial.js 313 字节
Newer Older
N
Nicolas Garcia Belmonte 已提交
1 2 3 4 5 6
/**
 * @author mr.doob / http://mrdoob.com/
 */

THREE.MeshColorFillMaterial = function ( hex, opacity ) {

7
	this.color = new THREE.Color( ( opacity !== undefined ? opacity : 1 ) * 0xff << 24 ^ hex );
N
Nicolas Garcia Belmonte 已提交
8 9 10 11 12 13 14 15

	this.toString = function () {

		return 'THREE.MeshColorFillMaterial ( color: ' + this.color + ' )';

	};

};