|
@@ -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.' );
|
|
|
|
|
|
}
|
|
|
|