mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-18 17:35:57 +10:00
CanvasRenderer and SVGRenderer using single-material system.
Also moved `.overdraw` to Material. Code is much simpler now :)
This commit is contained in:
+5
-1
@@ -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 ) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user