|
@@ -506,7 +506,7 @@ float4 computeForwardProbes(Surface surface,
|
|
float horizon = saturate( 1 + horizonOcclusion * dot(surface.R, surface.N));
|
|
float horizon = saturate( 1 + horizonOcclusion * dot(surface.R, surface.N));
|
|
horizon *= horizon;
|
|
horizon *= horizon;
|
|
#if CAPTURING == 1
|
|
#if CAPTURING == 1
|
|
- return float4(lerp(surface.baseColor.rgb,(irradiance + specular* horizon) ,surface.metalness/2),0);
|
|
|
|
|
|
+ return float4(lerp((irradiance + specular* horizon),surface.baseColor.rgb,surface.metalness),0);
|
|
#else
|
|
#else
|
|
return float4((irradiance + specular* horizon) , 0);//alpha writes disabled
|
|
return float4((irradiance + specular* horizon) , 0);//alpha writes disabled
|
|
#endif
|
|
#endif
|