lightshaft fix when camera is far from origin
This commit is contained in:
@@ -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());
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user