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.
36 lines
589 B
36 lines
589 B
import { PhongNode } from './nodes/PhongNode.js'; |
|
import { NodeMaterial } from './NodeMaterial.js'; |
|
import { NodeUtils } from '../core/NodeUtils.js'; |
|
|
|
class PhongNodeMaterial extends NodeMaterial { |
|
|
|
constructor() { |
|
|
|
const node = new PhongNode(); |
|
|
|
super( node, node ); |
|
|
|
this.type = 'PhongNodeMaterial'; |
|
|
|
} |
|
|
|
} |
|
|
|
NodeUtils.addShortcuts( PhongNodeMaterial.prototype, 'fragment', [ |
|
'color', |
|
'alpha', |
|
'specular', |
|
'shininess', |
|
'normal', |
|
'emissive', |
|
'ambient', |
|
'light', |
|
'shadow', |
|
'ao', |
|
'environment', |
|
'environmentAlpha', |
|
'mask', |
|
'position' |
|
] ); |
|
|
|
export { PhongNodeMaterial };
|
|
|