12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import MeshStandardNodeMaterial from './MeshStandardNodeMaterial.js';
- import { MeshPhysicalMaterial } from 'three';
- const defaultValues = new MeshPhysicalMaterial();
- export default class MeshPhysicalNodeMaterial extends MeshStandardNodeMaterial {
- constructor( parameters ) {
- super();
- this.isMeshPhysicalNodeMaterial = true;
- this.clearcoatNode = null;
- this.clearcoatRoughnessNode = null;
- this.clearcoatNormalNode = null;
- this.sheenNode = null;
- this.sheenRoughnessNode = null;
- this.sheen = 0;
- this.clearcoat = 0;
- this.iridescence = 0;
- this.transmission = 0;
- this.setDefaultValues( defaultValues );
- this.setValues( parameters );
- }
- copy( source ) {
- this.clearcoatNode = source.clearcoatNode;
- this.clearcoatRoughnessNode = source.clearcoatRoughnessNode;
- this.clearcoatNormalNode = source.clearcoatNormalNode;
- this.sheenNode = source.sheenNode;
- this.sheenRoughnessNode = source.sheenRoughnessNode;
- return super.copy( source );
- }
- }
|