Browse Source

Fix default ior value

Popov72 5 năm trước cách đây
mục cha
commit
22b66f35cd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Materials/Node/Blocks/PBR/refractionBlock.ts

+ 1 - 1
src/Materials/Node/Blocks/PBR/refractionBlock.ts

@@ -213,7 +213,7 @@ export class RefractionBlock extends NodeMaterialBlock {
             }
         }
 
-        const indexOfRefraction = this.indexOfRefraction.connectInputBlock?.value ?? 1.0;
+        const indexOfRefraction = this.indexOfRefraction.connectInputBlock?.value ?? 1.5;
 
         effect.setFloat4(this._vRefractionInfosName, refractionTexture.level, 1 / indexOfRefraction, depth, this.invertRefractionY ? -1 : 1);