Browse Source

ShaderMaterial: Minor clean up.

Mr.doob 11 years ago
parent
commit
28c86a1b22
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/materials/ShaderMaterial.js

+ 4 - 3
src/materials/ShaderMaterial.js

@@ -33,12 +33,13 @@ THREE.ShaderMaterial = function ( parameters ) {
 
 
 	THREE.Material.call( this );
 	THREE.Material.call( this );
 
 
-	this.fragmentShader = 'void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}';
-	this.vertexShader = 'void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}';
-	this.uniforms = {};
 	this.defines = {};
 	this.defines = {};
+	this.uniforms = {};
 	this.attributes = null;
 	this.attributes = null;
 
 
+	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}';
+
 	this.shading = THREE.SmoothShading;
 	this.shading = THREE.SmoothShading;
 
 
 	this.linewidth = 1;
 	this.linewidth = 1;