From 7190da4df091170d8a3aa64c337b83a32b6c4555 Mon Sep 17 00:00:00 2001 From: Nehon Date: Sat, 26 Mar 2016 10:47:49 +0100 Subject: [PATCH] PBRLighting Uses the world normal fetched from the texture... --- .../src/main/resources/Common/MatDefs/Light/PBRLighting.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.frag b/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.frag index 2c9877e61..5ef0be895 100644 --- a/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.frag +++ b/jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.frag @@ -214,7 +214,7 @@ void main(){ vec3 indirectDiffuse = vec3(0.0); vec3 indirectSpecular = vec3(0.0); - indirectDiffuse = textureCube(g_IrradianceMap, wNormal.xyz).rgb * diffuseColor.rgb; + indirectDiffuse = textureCube(g_IrradianceMap, normal.xyz).rgb * diffuseColor.rgb; indirectSpecular = ApproximateSpecularIBLPolynomial(g_PrefEnvMap, specularColor.rgb, Roughness, ndotv, rv.xyz); indirectSpecular *= vec3(horiz);