Popov72 5 years ago
parent
commit
5740b1da79
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Shaders/ShadersInclude/pbrBRDFFunctions.fx

+ 1 - 1
src/Shaders/ShadersInclude/pbrBRDFFunctions.fx

@@ -99,7 +99,7 @@ float fresnelSchlickGGX(float VdotH, float reflectance0, float reflectance90)
 
 
 #ifdef CLEARCOAT
 #ifdef CLEARCOAT
     // Knowing ior clear coat is fix for the material
     // Knowing ior clear coat is fix for the material
-    // Solving iorbase = 1 + sqrt(fo) / (1 - sqrt(fo)) and f0base = square((iorbase - iorclearcoat) / (iorbase - iorclearcoat))
+    // Solving iorbase = 1 + sqrt(fo) / (1 - sqrt(fo)) and f0base = square((iorbase - iorclearcoat) / (iorbase + iorclearcoat))
     // provide f0base = square(A + B * sqrt(fo)) / (B + A * sqrt(fo))
     // provide f0base = square(A + B * sqrt(fo)) / (B + A * sqrt(fo))
     // where A = 1 - iorclearcoat
     // where A = 1 - iorclearcoat
     // and   B = 1 + iorclearcoat
     // and   B = 1 + iorclearcoat