temporal aa hotfix
This commit is contained in:
@@ -3748,8 +3748,7 @@ void UpdatePerFrameData(float dt)
|
||||
temporalAAJitterPrev = temporalAAJitter;
|
||||
temporalAAJitter.x = jitter * (halton.x * 2 - 1) / (float)GetInternalResolution().x;
|
||||
temporalAAJitter.y = jitter * (halton.y * 2 - 1) / (float)GetInternalResolution().y;
|
||||
GetCamera().Projection.m[2][0] = temporalAAJitter.x;
|
||||
GetCamera().Projection.m[2][1] = temporalAAJitter.y;
|
||||
GetCamera().jitter = temporalAAJitter;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -933,6 +933,8 @@ namespace wiSceneSystem
|
||||
void CameraComponent::UpdateCamera()
|
||||
{
|
||||
XMStoreFloat4x4(&Projection, XMMatrixPerspectiveFovLH(fov, width / height, zFarP, zNearP)); // reverse zbuffer!
|
||||
Projection.m[2][0] = jitter.x;
|
||||
Projection.m[2][1] = jitter.y;
|
||||
|
||||
XMVECTOR _Eye = XMLoadFloat3(&Eye);
|
||||
XMVECTOR _At = XMLoadFloat3(&At);
|
||||
|
||||
@@ -730,6 +730,7 @@ namespace wiSceneSystem
|
||||
XMFLOAT4X4 View, Projection, VP;
|
||||
Frustum frustum;
|
||||
XMFLOAT4X4 InvView, InvProjection, InvVP;
|
||||
XMFLOAT2 jitter;
|
||||
|
||||
void CreatePerspective(float newWidth, float newHeight, float newNear, float newFar, float newFOV = XM_PI / 3.0f);
|
||||
void UpdateCamera();
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace wiVersion
|
||||
// minor features, major updates
|
||||
const int minor = 26;
|
||||
// minor bug fixes, alterations, refactors, updates
|
||||
const int revision = 27;
|
||||
const int revision = 28;
|
||||
|
||||
|
||||
long GetVersion()
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user