|
@@ -2,7 +2,7 @@
|
|
|
* @author mrdoob / http://mrdoob.com/
|
|
|
*/
|
|
|
|
|
|
-import { BackSide, DoubleSide, CubeUVRefractionMapping, CubeUVReflectionMapping, GammaEncoding, LinearEncoding } from '../../constants.js';
|
|
|
+import { BackSide, DoubleSide, CubeUVRefractionMapping, CubeUVReflectionMapping, GammaEncoding, LinearEncoding, ObjectSpaceNormalMap } from '../../constants.js';
|
|
|
import { WebGLProgram } from './WebGLProgram.js';
|
|
|
|
|
|
function WebGLPrograms( renderer, extensions, capabilities ) {
|
|
@@ -27,7 +27,7 @@ function WebGLPrograms( renderer, extensions, capabilities ) {
|
|
|
|
|
|
var parameterNames = [
|
|
|
"precision", "supportsVertexTextures", "map", "mapEncoding", "envMap", "envMapMode", "envMapEncoding",
|
|
|
- "lightMap", "aoMap", "emissiveMap", "emissiveMapEncoding", "bumpMap", "normalMap", "displacementMap", "specularMap",
|
|
|
+ "lightMap", "aoMap", "emissiveMap", "emissiveMapEncoding", "bumpMap", "normalMap", "objectSpaceNormalMap", "displacementMap", "specularMap",
|
|
|
"roughnessMap", "metalnessMap", "gradientMap",
|
|
|
"alphaMap", "combine", "vertexColors", "fog", "useFog", "fogExp",
|
|
|
"flatShading", "sizeAttenuation", "logarithmicDepthBuffer", "skinning",
|
|
@@ -148,6 +148,7 @@ function WebGLPrograms( renderer, extensions, capabilities ) {
|
|
|
emissiveMapEncoding: getTextureEncodingFromMap( material.emissiveMap, renderer.gammaInput ),
|
|
|
bumpMap: !! material.bumpMap,
|
|
|
normalMap: !! material.normalMap,
|
|
|
+ objectSpaceNormalMap: material.normalMapType === ObjectSpaceNormalMap,
|
|
|
displacementMap: !! material.displacementMap,
|
|
|
roughnessMap: !! material.roughnessMap,
|
|
|
metalnessMap: !! material.metalnessMap,
|