CanvasRenderer and SVGRenderer using single-material system.

Also moved `.overdraw` to Material.
Code is much simpler now :)
This commit is contained in:
Mr.doob
2011-10-23 13:50:55 +02:00
parent 806ecdfc04
commit ec00f298be
33 changed files with 1318 additions and 1470 deletions
+5 -1
View File
@@ -11,8 +11,12 @@ THREE.Mesh = function ( geometry, material ) {
this.geometry = geometry;
this.material = material;
this.overdraw = false; // TODO: Move to material?
if ( material instanceof Array ) {
console.warn( 'DEPRECATE: Material array is no longer supported. Using material 0...' );
this.material = material[ 0 ];
}
if ( this.geometry ) {