123456789101112131415161718192021222324252627282930313233343536373839 |
- import { MeshPhongMaterial } from './MeshPhongMaterial';
- /**
- * @author takahirox / http://github.com/takahirox
- *
- * parameters = {
- * gradientMap: new THREE.Texture( <Image> )
- * }
- */
- function MeshToonMaterial( parameters ) {
- MeshPhongMaterial.call( this );
- this.type = 'MeshToonMaterial';
- this.gradientMap = null;
- this.setValues( parameters );
- }
- MeshToonMaterial.prototype = Object.create( MeshPhongMaterial.prototype );
- MeshToonMaterial.prototype.constructor = MeshToonMaterial;
- MeshToonMaterial.prototype.isMeshToonMaterial = true;
- MeshToonMaterial.prototype.copy = function ( source ) {
- MeshPhongMaterial.prototype.copy.call( this, source );
- this.gradientMap = source.gradientMap;
- return this;
- };
- export { MeshToonMaterial };
|