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