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.
 
 
 

26 lines
461 B

import { BasicNode } from './nodes/BasicNode.js';
import { NodeMaterial } from './NodeMaterial.js';
import { NodeUtils } from '../core/NodeUtils.js';
class BasicNodeMaterial extends NodeMaterial {
constructor() {
const node = new BasicNode();
super( node, node );
this.type = 'BasicNodeMaterial';
}
}
NodeUtils.addShortcuts( BasicNodeMaterial.prototype, 'fragment', [
'color',
'alpha',
'mask',
'position'
] );
export { BasicNodeMaterial };