mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
35 lines
773 B
JavaScript
35 lines
773 B
JavaScript
/**
|
|
* @author sunag / http://www.sunag.com.br/
|
|
*/
|
|
|
|
import { MeshStandardNode } from './nodes/MeshStandardNode.js';
|
|
import { NodeMaterial } from './NodeMaterial.js';
|
|
import { NodeUtils } from '../core/NodeUtils.js';
|
|
|
|
function MeshStandardNodeMaterial() {
|
|
|
|
var node = new MeshStandardNode();
|
|
|
|
NodeMaterial.call( this, node, node );
|
|
|
|
this.type = "MeshStandardNodeMaterial";
|
|
|
|
}
|
|
|
|
MeshStandardNodeMaterial.prototype = Object.create( NodeMaterial.prototype );
|
|
MeshStandardNodeMaterial.prototype.constructor = MeshStandardNodeMaterial;
|
|
|
|
NodeUtils.addShortcuts( MeshStandardNodeMaterial.prototype, 'properties', [
|
|
"color",
|
|
"roughness",
|
|
"metalness",
|
|
"map",
|
|
"normalMap",
|
|
"normalScale",
|
|
"metalnessMap",
|
|
"roughnessMap",
|
|
"envMap"
|
|
] );
|
|
|
|
export { MeshStandardNodeMaterial };
|