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.
27 lines
482 B
27 lines
482 B
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 };
|
|
|