diff --git a/WickedEngine/shaders/rtreflectionCS.hlsl b/WickedEngine/shaders/rtreflectionCS.hlsl index fc2ba56a2..de5ecf249 100644 --- a/WickedEngine/shaders/rtreflectionCS.hlsl +++ b/WickedEngine/shaders/rtreflectionCS.hlsl @@ -113,7 +113,16 @@ void main(uint2 DTid : SV_DispatchThreadID) if (q.CommittedStatus() != COMMITTED_TRIANGLE_HIT) { // miss: - payload.data.xyz += GetDynamicSkyColor(q.WorldRayDirection()); + [branch] + if (IsStaticSky()) + { + // We have envmap information in a texture: + payload.data.xyz += GetStaticSkyColor(q.WorldRayDirection()); + } + else + { + payload.data.xyz += GetDynamicSkyColor(q.WorldRayDirection()); + } payload.data.w = FLT_MAX; } else diff --git a/WickedEngine/wiVersion.cpp b/WickedEngine/wiVersion.cpp index 557194845..1d5023428 100644 --- a/WickedEngine/wiVersion.cpp +++ b/WickedEngine/wiVersion.cpp @@ -9,7 +9,7 @@ namespace wi::version // minor features, major updates, breaking compatibility changes const int minor = 71; // minor bug fixes, alterations, refactors, updates - const int revision = 282; + const int revision = 283; const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision); @@ -139,6 +139,7 @@ Patreon supporters - Nicolas Embleton - Desuuc - radino1977 +- Anthony Curtis )"; return credits;