Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Features/Upscaling/FidelityFX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ void FidelityFX::Upscale(ID3D11Resource* a_upscalingTexture, ID3D11Resource* a_r
dispatchParameters.cameraNear = *globals::game::cameraNear;

dispatchParameters.enableSharpening = true;
dispatchParameters.sharpness = 0.5f;
dispatchParameters.sharpness = 0.0f;

dispatchParameters.cameraFovAngleVertical = Util::GetVerticalFOVRad();
dispatchParameters.viewSpaceToMetersFactor = 0.01428222656f;
Expand Down
6 changes: 3 additions & 3 deletions src/State.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ void State::SetAdapterDescription(const std::wstring& description)
adapterDescription = converter.to_bytes(description);
}

void State::UpdateSharedData(bool a_inWorld, bool a_prepass)
void State::UpdateSharedData([[maybe_unused]] bool a_inWorld, [[maybe_unused]] bool a_prepass)
{
{
SharedDataCB data{};
Expand Down Expand Up @@ -764,8 +764,8 @@ void State::UpdateSharedData(bool a_inWorld, bool a_prepass)

if (upscaling.loaded) {
auto upscaleMethod = upscaling.GetUpscaleMethod();
if (temporal && (a_inWorld || a_prepass) && upscaleMethod != Upscaling::UpscaleMethod::kTAA) {
auto renderSize = Util::ConvertToDynamic(screenSize);
if (temporal && upscaleMethod != Upscaling::UpscaleMethod::kTAA) {
auto renderSize = Util::ConvertToDynamic(screenSize, true);
data.MipBias = std::log2f(renderSize.x / screenSize.x);
if (upscaleMethod == Upscaling::UpscaleMethod::kDLSS)
data.MipBias -= 1.0f;
Expand Down