raytraced reflection fix: static sky can also be reflected

This commit is contained in:
Turánszki János
2023-08-31 07:40:42 +02:00
parent 553a2ce720
commit 0035848630
2 changed files with 12 additions and 2 deletions
+10 -1
View File
@@ -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
+2 -1
View File
@@ -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;