MeshBasicNodeMaterial.js 656 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { MeshBasicMaterial } from 'three';
  2. class MeshBasicNodeMaterial extends MeshBasicMaterial {
  3. constructor( parameters ) {
  4. super( parameters );
  5. this.colorNode = null;
  6. this.opacityNode = null;
  7. this.alphaTestNode = null;
  8. this.lightNode = null;
  9. this.positionNode = null;
  10. }
  11. copy( source ) {
  12. this.colorNode = source.colorNode;
  13. this.opacityNode = source.opacityNode;
  14. this.alphaTestNode = source.alphaTestNode;
  15. this.lightNode = source.lightNode;
  16. this.positionNode = source.positionNode;
  17. return super.copy( source );
  18. }
  19. }
  20. MeshBasicNodeMaterial.prototype.isNodeMaterial = true;
  21. export default MeshBasicNodeMaterial;