We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfb9e32 commit fe4fe4fCopy full SHA for fe4fe4f
src/graphics/program-lib/programs/standard.js
@@ -1132,7 +1132,8 @@ var standard = {
1132
1133
if (!options.hasTangents) {
1134
// TODO: generalize to support each normalmap input (normalMap, normalDetailMap, clearCoatNormalMap) indenpendently
1135
- var normalMapUv = this._getUvSourceExpression("normalMapTransform", "normalMapUv", options);
+ const transformPropName = options.normalMap ? "normalMapTransform" : "clearCoatNormalMapTransform";
1136
+ const normalMapUv = this._getUvSourceExpression(transformPropName, "normalMapUv", options);
1137
tbn = tbn.replace(/\$UV/g, normalMapUv);
1138
}
1139
code += tbn;
0 commit comments