adding basic tone mapping

This commit is contained in:
Dynamitos committed 2025-03-10 18:35:35 +01:00
1 parent 6f0e2fe7e7
commit a957b05615
20 files changed
+314 -37

No files matched your search

+2 -1
View File
@@ -35,7 +35,8 @@ class RenderTargetAttachment {
}
SeSampleCountFlags getNumSamples() const {
if (viewport != nullptr) {
return viewport->getSamples();
// viewport backbuffers are not multisampled themselves
return Gfx::SE_SAMPLE_COUNT_1_BIT;
}
return texture->getNumSamples();
}