18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-21 19:05:00 +01:00

Add NVIDIA DLSS to the Vulkan renderer (gfx.antialiasing dlss/dlaa) and gfx.buffer.percent

This commit is contained in:
2026-10-25 19:35:33 +01:00
parent 71a6628a4a
commit 1841e6d7b0
27 changed files with 1487 additions and 56 deletions

View File

@@ -0,0 +1,16 @@
#version 460 core
#define STAGE_FRAGMENT 1
#define LAYOUT_POST 1
#include "common.glsl"
// the exposure the tonemapping applies to the image (postfx_tonemapping.frag), in the texel dlss takes it from
// (rendering/vulkan14/vulkan14dlss.h). param is pc.data of the push constants: param[0].y 1 if the automatic exposure is applied
// (exposure_ssbo of common.glsl), param[0].z the fixed exposure multiplier
layout(location = 0) out vec4 out_exposure;
void main()
{
float scale = param[0].z;
if (param[0].y > 0.5 && exposure > 0.0)
scale *= exposure;
out_exposure = vec4(scale, 0.0, 0.0, 1.0);
}