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.

28 lines
482 B

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