diff --git a/WickedEngine/lightingHF.hlsli b/WickedEngine/lightingHF.hlsli index 12e0e6ab0..07d754f07 100644 --- a/WickedEngine/lightingHF.hlsli +++ b/WickedEngine/lightingHF.hlsli @@ -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)); diff --git a/WickedEngine/wiVersion.cpp b/WickedEngine/wiVersion.cpp index 69c60f6de..2d3248397 100644 --- a/WickedEngine/wiVersion.cpp +++ b/WickedEngine/wiVersion.cpp @@ -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()