Dies ist das Repository meines kleinen Portfolios.
Im Hintergrund läuft eine Planetensimulation, geschrieben in JavaScript und Three.js.
Die zu sehenden Texturen stammen von:
https://www.solarsystemscope.com/textures/
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 };
|
|
|