You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
591 B
31 lines
591 B
import { MeshStandardNode } from './nodes/MeshStandardNode.js';
|
|
import { NodeMaterial } from './NodeMaterial.js';
|
|
import { NodeUtils } from '../core/NodeUtils.js';
|
|
|
|
class MeshStandardNodeMaterial extends NodeMaterial {
|
|
|
|
constructor() {
|
|
|
|
const node = new MeshStandardNode();
|
|
|
|
super( node, node );
|
|
|
|
this.type = 'MeshStandardNodeMaterial';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
NodeUtils.addShortcuts( MeshStandardNodeMaterial.prototype, 'properties', [
|
|
'color',
|
|
'roughness',
|
|
'metalness',
|
|
'map',
|
|
'normalMap',
|
|
'normalScale',
|
|
'metalnessMap',
|
|
'roughnessMap',
|
|
'envMap'
|
|
] );
|
|
|
|
export { MeshStandardNodeMaterial };
|
|
|