This commit is contained in:
Turánszki János
2025-06-29 06:54:10 +02:00
parent 0df54255a1
commit 39a5db515a
8 changed files with 8 additions and 9 deletions
+2 -2
View File
@@ -1588,12 +1588,12 @@ void GraphicsWindow::Update()
if (editor->resolutionScale != editor->renderPath->resolutionScale)
{
editor->renderPath->resolutionScale = editor->resolutionScale;
editor->ResizeBuffers();
//editor->ResizeBuffers();
}
if (MSAAComboBox.GetItemUserData(MSAAComboBox.GetSelected()) != editor->renderPath->getMSAASampleCount())
{
editor->renderPath->setMSAASampleCount((uint32_t)MSAAComboBox.GetItemUserData(MSAAComboBox.GetSelected()));
editor->ResizeBuffers();
//editor->ResizeBuffers();
}
if (IsCollapsed())
@@ -87,5 +87,5 @@ float4 main(VertexToPixel input) : SV_Target
atmosphere_transmittance = GetAtmosphericLightTransmittance(GetWeather().atmosphere, P, L, texture_transmittancelut);
}
return max(0, half4(accumulation * light.GetColor().rgb * atmosphere_transmittance, 1));
return saturateMediump(max(0, half4(accumulation * light.GetColor().rgb * atmosphere_transmittance, 1)));
}
@@ -88,5 +88,5 @@ float4 main(VertexToPixel input) : SV_TARGET
accumulation *= sampleCount_rcp;
return max(0, half4(accumulation * light.GetColor().rgb, 1));
return saturateMediump(max(0, half4(accumulation * light.GetColor().rgb, 1)));
}
@@ -145,5 +145,5 @@ float4 main(VertexToPixel input) : SV_TARGET
accumulation *= sampleCount_rcp;
return max(0, half4(accumulation * light.GetColor().rgb, 1));
return saturateMediump(max(0, half4(accumulation * light.GetColor().rgb, 1)));
}
@@ -130,5 +130,5 @@ float4 main(VertexToPixel input) : SV_TARGET
accumulation *= sampleCount_rcp;
return max(0, half4(accumulation * light.GetColor().rgb, 1));
return saturateMediump(max(0, half4(accumulation * light.GetColor().rgb, 1)));
}
+1 -1
View File
@@ -43,7 +43,7 @@ namespace wi
desc.height = GetPhysicalHeight();
desc.sample_count = sampleCount;
desc.bind_flags = BindFlag::DEPTH_STENCIL;
desc.format = Format::D24_UNORM_S8_UINT;
desc.format = Format::D32_FLOAT_S8X24_UINT; // D24 was erroring on Vulkan AMD though here it would be enough
desc.layout = ResourceState::DEPTHSTENCIL;
device->CreateTexture(&desc, nullptr, &stencilScaled);
device->SetName(&stencilScaled, "stencilScaled");
-1
View File
@@ -191,7 +191,6 @@ namespace wi
device->Barrier(GPUBarrier::Image(&rtSceneCopy, rtSceneCopy.desc.layout, ResourceState::UNORDERED_ACCESS), cmd);
device->ClearUAV(&rtSceneCopy, 0, cmd);
device->Barrier(GPUBarrier::Image(&rtSceneCopy, ResourceState::UNORDERED_ACCESS, rtSceneCopy.desc.layout), cmd);
device->SubmitCommandLists();
}
{
TextureDesc desc;
+1 -1
View File
@@ -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 = 801;
const int revision = 802;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);