|
@@ -843,7 +843,7 @@ module BABYLON {
|
|
|
"mBones",
|
|
|
"vClipPlane", "diffuseMatrix", "ambientMatrix", "opacityMatrix", "reflectionMatrix", "emissiveMatrix", "specularMatrix", "bumpMatrix", "lightmapMatrix", "refractionMatrix",
|
|
|
"diffuseLeftColor", "diffuseRightColor", "opacityParts", "reflectionLeftColor", "reflectionRightColor", "emissiveLeftColor", "emissiveRightColor", "refractionLeftColor", "refractionRightColor",
|
|
|
- "logarithmicDepthConstant", "vNormalReoderParams"
|
|
|
+ "logarithmicDepthConstant", "vNormalReorderParams"
|
|
|
];
|
|
|
|
|
|
var samplers = ["diffuseSampler", "ambientSampler", "opacitySampler", "reflectionCubeSampler", "reflection2DSampler", "emissiveSampler", "specularSampler", "bumpSampler", "lightmapSampler", "refractionCubeSampler", "refraction2DSampler"]
|
|
@@ -920,7 +920,7 @@ module BABYLON {
|
|
|
this._uniformBuffer.addUniform("lightmapMatrix", 16);
|
|
|
this._uniformBuffer.addUniform("specularMatrix", 16);
|
|
|
this._uniformBuffer.addUniform("bumpMatrix", 16);
|
|
|
- this._uniformBuffer.addUniform("vNormalReoderParams", 4);
|
|
|
+ this._uniformBuffer.addUniform("vNormalReorderParams", 4);
|
|
|
this._uniformBuffer.addUniform("refractionMatrix", 16);
|
|
|
this._uniformBuffer.addUniform("vRefractionInfos", 4);
|
|
|
this._uniformBuffer.addUniform("vSpecularColor", 4);
|
|
@@ -1039,9 +1039,9 @@ module BABYLON {
|
|
|
MaterialHelper.BindTextureMatrix(this._bumpTexture, this._uniformBuffer, "bump");
|
|
|
|
|
|
if (scene._mirroredCameraPosition) {
|
|
|
- this._uniformBuffer.updateFloat4("vNormalReoderParams", this.invertNormalMapX ? 0 : 1.0, this.invertNormalMapX ? 1.0 : -1.0, this.invertNormalMapY ? 0 : 1.0, this.invertNormalMapY ? 1.0 : -1.0);
|
|
|
+ this._uniformBuffer.updateFloat4("vNormalReorderParams", this.invertNormalMapX ? 0 : 1.0, this.invertNormalMapX ? 1.0 : -1.0, this.invertNormalMapY ? 0 : 1.0, this.invertNormalMapY ? 1.0 : -1.0);
|
|
|
} else {
|
|
|
- this._uniformBuffer.updateFloat4("vNormalReoderParams", this.invertNormalMapX ? 1.0 : 0, this.invertNormalMapX ? -1.0 : 1.0, this.invertNormalMapY ? 1.0 : 0, this.invertNormalMapY ? -1.0 : 1.0);
|
|
|
+ this._uniformBuffer.updateFloat4("vNormalReorderParams", this.invertNormalMapX ? 1.0 : 0, this.invertNormalMapX ? -1.0 : 1.0, this.invertNormalMapY ? 1.0 : 0, this.invertNormalMapY ? -1.0 : 1.0);
|
|
|
}
|
|
|
}
|
|
|
|