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.
40 lines
679 B
40 lines
679 B
import { StandardNode } from './nodes/StandardNode.js'; |
|
import { NodeMaterial } from './NodeMaterial.js'; |
|
import { NodeUtils } from '../core/NodeUtils.js'; |
|
|
|
class StandardNodeMaterial extends NodeMaterial { |
|
|
|
constructor() { |
|
|
|
const node = new StandardNode(); |
|
|
|
super( node, node ); |
|
|
|
this.type = 'StandardNodeMaterial'; |
|
|
|
} |
|
|
|
} |
|
|
|
NodeUtils.addShortcuts( StandardNodeMaterial.prototype, 'fragment', [ |
|
'color', |
|
'alpha', |
|
'roughness', |
|
'metalness', |
|
'reflectivity', |
|
'clearcoat', |
|
'clearcoatRoughness', |
|
'clearcoatNormal', |
|
'normal', |
|
'emissive', |
|
'ambient', |
|
'light', |
|
'shadow', |
|
'ao', |
|
'environment', |
|
'mask', |
|
'position', |
|
'sheenColor' |
|
] ); |
|
|
|
export { StandardNodeMaterial };
|
|
|