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.
26 lines
461 B
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 };
|
|
|