|
@@ -1081,10 +1081,10 @@
|
|
|
|
|
|
var refractionTexture = this._getRefractionTexture();
|
|
var refractionTexture = this._getRefractionTexture();
|
|
if (refractionTexture && StandardMaterial.RefractionTextureEnabled) {
|
|
if (refractionTexture && StandardMaterial.RefractionTextureEnabled) {
|
|
|
|
+ this._uniformBuffer.updateMatrix("refractionMatrix", refractionTexture.getReflectionTextureMatrix());
|
|
|
|
+
|
|
var depth = 1.0;
|
|
var depth = 1.0;
|
|
if (!refractionTexture.isCube) {
|
|
if (!refractionTexture.isCube) {
|
|
- this._uniformBuffer.updateMatrix("refractionMatrix", refractionTexture.getReflectionTextureMatrix());
|
|
|
|
-
|
|
|
|
if ((<any>refractionTexture).depth) {
|
|
if ((<any>refractionTexture).depth) {
|
|
depth = (<any>refractionTexture).depth;
|
|
depth = (<any>refractionTexture).depth;
|
|
}
|
|
}
|