planar reflection: temporal AA improvement
This commit is contained in:
@@ -489,12 +489,16 @@ namespace wi
|
||||
if (getFSR2Enabled())
|
||||
{
|
||||
camera->jitter = fsr2Resources.GetJitter();
|
||||
camera_reflection.jitter.x = camera->jitter.x * 2;
|
||||
camera_reflection.jitter.y = camera->jitter.x * 2;
|
||||
}
|
||||
else if (wi::renderer::GetTemporalAAEnabled())
|
||||
{
|
||||
const XMFLOAT4& halton = wi::math::GetHaltonSequence(wi::graphics::GetDevice()->GetFrameCount() % 256);
|
||||
camera->jitter.x = (halton.x * 2 - 1) / (float)internalResolution.x;
|
||||
camera->jitter.y = (halton.y * 2 - 1) / (float)internalResolution.y;
|
||||
camera_reflection.jitter.x = camera->jitter.x * 2;
|
||||
camera_reflection.jitter.y = camera->jitter.x * 2;
|
||||
if (!temporalAAResources.IsValid())
|
||||
{
|
||||
wi::renderer::CreateTemporalAAResources(temporalAAResources, internalResolution);
|
||||
@@ -503,9 +507,11 @@ namespace wi
|
||||
else
|
||||
{
|
||||
camera->jitter = XMFLOAT2(0, 0);
|
||||
camera_reflection.jitter = XMFLOAT2(0, 0);
|
||||
temporalAAResources = {};
|
||||
}
|
||||
camera->UpdateCamera();
|
||||
camera_reflection.UpdateCamera();
|
||||
|
||||
if (getAO() != AO_RTAO)
|
||||
{
|
||||
|
||||
@@ -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 = 108;
|
||||
const int revision = 109;
|
||||
|
||||
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user