three 基础库
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.

41 lines
674 B

2 years ago
import { StandardNode } from './nodes/StandardNode.js';
import { NodeMaterial } from './NodeMaterial.js';
import { NodeUtils } from '../core/NodeUtils.js';
class StandardNodeMaterial extends NodeMaterial {
constructor() {
const node = new StandardNode();
super( node, node );
this.type = 'StandardNodeMaterial';
}
}
NodeUtils.addShortcuts( StandardNodeMaterial.prototype, 'fragment', [
'color',
'alpha',
'roughness',
'metalness',
'reflectivity',
'clearcoat',
'clearcoatRoughness',
'clearcoatNormal',
'normal',
'emissive',
'ambient',
'light',
'shadow',
'ao',
'environment',
'mask',
'position',
'sheen'
] );
export { StandardNodeMaterial };