fix: envprobe captures are now using approximate reflections from sky color on surfaces

This commit is contained in:
turanszkij
2018-03-08 11:28:45 +00:00
parent e563fc77b6
commit 13a5ad3e35
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -735,6 +735,7 @@ inline float3 EnvironmentReflection_Global(in Surface surface, in float MIP)
{
float3 envColor;
#ifndef ENVMAPRENDERING
[branch]
if (g_xWorld_GlobalEnvProbeIndex >= 0)
{
@@ -742,6 +743,7 @@ inline float3 EnvironmentReflection_Global(in Surface surface, in float MIP)
envColor = texture_envmaparray.SampleLevel(sampler_linear_clamp, float4(surface.R, g_xWorld_GlobalEnvProbeIndex), MIP).rgb;
}
else
#endif // ENVMAPRENDERING
{
// There are no envmaps, approximate sky color:
float3 realSkyColor = lerp(GetHorizonColor(), GetZenithColor(), pow(saturate(surface.R.y), 0.25f));
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates
const int minor = 16;
// minor bug fixes, alterations, refactors, updates
const int revision = 16;
const int revision = 17;
long GetVersion()