fixes
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user