From a91dbb08e411cb2e515c7112ae971bd9603e7289 Mon Sep 17 00:00:00 2001 From: Azaezel Date: Fri, 29 Mar 2019 00:55:42 -0500 Subject: [PATCH] typofix --- .../shaders/common/lighting/advanced/reflectionProbeArrayP.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Templates/Full/game/shaders/common/lighting/advanced/reflectionProbeArrayP.hlsl b/Templates/Full/game/shaders/common/lighting/advanced/reflectionProbeArrayP.hlsl index 886c00823..70b449b13 100644 --- a/Templates/Full/game/shaders/common/lighting/advanced/reflectionProbeArrayP.hlsl +++ b/Templates/Full/game/shaders/common/lighting/advanced/reflectionProbeArrayP.hlsl @@ -297,7 +297,7 @@ float4 main(PFXVertToPix IN) : SV_TARGET //apply brdf //Do it once to save on texture samples float2 brdf = TORQUE_TEX2DLOD(BRDFTexture, float4(surface.roughness, surface.NdotV, 0.0, 0.0)).xy; - specular *= brdf.x * F + brdf.y; + specular *= (brdf.x + brdf.y)* F; //final diffuse color float3 diffuse = kD * irradiance * surface.baseColor.rgb;