浏览代码

Remove extraneous f from GLSL code to satisfy the compiler.

Lasse Öörni 9 年之前
父节点
当前提交
9d5380bc10
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      bin/CoreData/Shaders/GLSL/BRDF.glsl

+ 2 - 2
bin/CoreData/Shaders/GLSL/BRDF.glsl

@@ -113,8 +113,8 @@
         float energyFactor = mix(roughness, 1.0, 1.0 / 1.51);
         float fd90 = energyBias + 2.0 * VdotH * VdotH * roughness;
         float f0 = 1.0;
-        float lightScatter = f0 + (fd90 - f0) * pow(1.0f - NdotL, 5.0f);
-        float viewScatter = f0 + (fd90 - f0) * pow(1.0f - NdotV, 5.0f);
+        float lightScatter = f0 + (fd90 - f0) * pow(1.0 - NdotL, 5.0);
+        float viewScatter = f0 + (fd90 - f0) * pow(1.0 - NdotV, 5.0);
 
         return diffuseColor * lightScatter * viewScatter * energyFactor;
     }