1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 10:49:36 +02:00
Oinktube/node_modules/three/examples/jsm/nodes/materials/PhongNodeMaterial.js
2023-12-11 11:59:56 -03:00

35 lines
697 B
JavaScript

import { PhongNode } from './nodes/PhongNode.js';
import { NodeMaterial } from './NodeMaterial.js';
import { NodeUtils } from '../core/NodeUtils.js';
function PhongNodeMaterial() {
var node = new PhongNode();
NodeMaterial.call( this, node, node );
this.type = 'PhongNodeMaterial';
}
PhongNodeMaterial.prototype = Object.create( NodeMaterial.prototype );
PhongNodeMaterial.prototype.constructor = PhongNodeMaterial;
NodeUtils.addShortcuts( PhongNodeMaterial.prototype, 'fragment', [
'color',
'alpha',
'specular',
'shininess',
'normal',
'emissive',
'ambient',
'light',
'shadow',
'ao',
'environment',
'environmentAlpha',
'mask',
'position'
] );
export { PhongNodeMaterial };