|
@@ -3,52 +3,6 @@ import { Material } from './Material.js';
|
|
|
import { Vector2 } from '../math/Vector2.js';
|
|
|
import { Color } from '../math/Color.js';
|
|
|
|
|
|
-/**
|
|
|
- * parameters = {
|
|
|
- * color: <hex>,
|
|
|
- * specular: <hex>,
|
|
|
- * shininess: <float>,
|
|
|
- * opacity: <float>,
|
|
|
- *
|
|
|
- * map: new THREE.Texture( <Image> ),
|
|
|
- *
|
|
|
- * lightMap: new THREE.Texture( <Image> ),
|
|
|
- * lightMapIntensity: <float>
|
|
|
- *
|
|
|
- * aoMap: new THREE.Texture( <Image> ),
|
|
|
- * aoMapIntensity: <float>
|
|
|
- *
|
|
|
- * emissive: <hex>,
|
|
|
- * emissiveIntensity: <float>
|
|
|
- * emissiveMap: new THREE.Texture( <Image> ),
|
|
|
- *
|
|
|
- * bumpMap: new THREE.Texture( <Image> ),
|
|
|
- * bumpScale: <float>,
|
|
|
- *
|
|
|
- * normalMap: new THREE.Texture( <Image> ),
|
|
|
- * normalMapType: THREE.TangentSpaceNormalMap,
|
|
|
- * normalScale: <Vector2>,
|
|
|
- *
|
|
|
- * displacementMap: new THREE.Texture( <Image> ),
|
|
|
- * displacementScale: <float>,
|
|
|
- * displacementBias: <float>,
|
|
|
- *
|
|
|
- * specularMap: new THREE.Texture( <Image> ),
|
|
|
- *
|
|
|
- * alphaMap: new THREE.Texture( <Image> ),
|
|
|
- *
|
|
|
- * envMap: new THREE.CubeTexture( [posx, negx, posy, negy, posz, negz] ),
|
|
|
- * combine: THREE.MultiplyOperation,
|
|
|
- * reflectivity: <float>,
|
|
|
- * refractionRatio: <float>,
|
|
|
- *
|
|
|
- * wireframe: <boolean>,
|
|
|
- * wireframeLinewidth: <float>,
|
|
|
- *
|
|
|
- * flatShading: <bool>
|
|
|
- * }
|
|
|
- */
|
|
|
-
|
|
|
class MeshPhongMaterial extends Material {
|
|
|
|
|
|
constructor( parameters ) {
|