فهرست منبع

Update PBRLighting.frag

Ryan McDonough 1 سال پیش
والد
کامیت
191f8cb7bd
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.frag

+ 1 - 1
jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.frag

@@ -54,7 +54,7 @@ void main(){
     vec3 vViewDir =  viewDir * tbnMat;                                 
 
     //base PBR params and tex reads:
-    readMatParamsAndTextures(tbnMat, vViewDir, albedo, Metallic, Roughness, specularColor, glossiness, lightMapColor, ao, normal, emissive, alpha);
+    readMatParamsAndTextures(tbnMat, vViewDir, albedo, Metallic, Roughness, specularColor, glossiness, lightMapColor, ao, indoorSunLightExposure, normal, emissive, alpha);
     
     // Lighting calculation:    
     vec3 finalLightingValue = calculatePBRLighting(albedo, Metallic, Roughness, specularColor, glossiness, lightMapColor, ao, indoorSunLightExposure, normal, norm, viewDir);