RawShaderMaterial.js 430 B

123456789101112131415161718192021
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. */
  4. THREE.RawShaderMaterial = function ( parameters ) {
  5. THREE.ShaderMaterial.call( this, parameters );
  6. };
  7. THREE.RawShaderMaterial.prototype = Object.create( THREE.ShaderMaterial.prototype );
  8. THREE.RawShaderMaterial.prototype.clone = function () {
  9. var material = new THREE.RawShaderMaterial();
  10. THREE.ShaderMaterial.prototype.clone.call( this, material );
  11. return material;
  12. };