diff --git a/src/materials/ShaderMaterial.js b/src/materials/ShaderMaterial.js index ba616921e039297f8c04928b307618d6891391de..aa01577bb0320e52136666fe52915e4c7cc820f7 100644 --- a/src/materials/ShaderMaterial.js +++ b/src/materials/ShaderMaterial.js @@ -36,7 +36,6 @@ THREE.ShaderMaterial = function ( parameters ) { this.defines = {}; this.uniforms = {}; - this.attributes = []; this.vertexShader = 'void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}'; this.fragmentShader = 'void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}'; @@ -73,10 +72,9 @@ THREE.ShaderMaterial = function ( parameters ) { if ( parameters !== undefined ) { - if ( parameters.attributes !== undefined && Array.isArray( parameters.attributes ) === false ) { + if ( parameters.attributes !== undefined ) { - console.warn( 'THREE.ShaderMaterial: attributes should now be an array of attribute names.' ); - parameters.attributes = Object.keys( parameters.attributes ); + console.error( 'THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead.' ); }