lightshaft fix when camera is far from origin

This commit is contained in:
Turánszki János
2021-12-27 00:13:16 +01:00
parent f84591a089
commit d13e05b5f3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1226,7 +1226,7 @@ void RenderPath3D::RenderLightShafts(CommandList cmd) const
// Radial blur on the sun:
{
XMVECTOR sunPos = XMVector3Project(sunDirection * 100000, 0, 0,
XMVECTOR sunPos = XMVector3Project(camera->GetEye() + sunDirection * camera->zFarP, 0, 0,
1.0f, 1.0f, 0.1f, 1.0f,
camera->GetProjection(), camera->GetView(), XMMatrixIdentity());
{
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wi::version
// minor features, major updates, breaking compatibility changes
const int minor = 60;
// minor bug fixes, alterations, refactors, updates
const int revision = 7;
const int revision = 8;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);