|
@@ -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;
|