|
@@ -501,9 +501,9 @@ 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(surface.baseColor.rgb,(irradiance + specular* horizon) ,surface.metalness/2),0);
|
|
#else
|
|
#else
|
|
- return float4((irradiance + specular) * horizon, 0);//alpha writes disabled
|
|
|
|
|
|
+ return float4((irradiance + specular* horizon) , 0);//alpha writes disabled
|
|
#endif
|
|
#endif
|
|
}
|
|
}
|
|
|
|
|
|
@@ -662,5 +662,5 @@ float4 debugVizForwardProbes(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;
|
|
|
|
|
|
- return float4((irradiance + specular) * horizon, 0);//alpha writes disabled
|
|
|
|
|
|
+ return float4((irradiance + specular* horizon) , 0);//alpha writes disabled
|
|
}
|
|
}
|