postfx: eliminat l'uniform oversample i vestigis de supersampling/Lanczos mai implementats

This commit is contained in:
JailDesigner committed 2026-04-21 08:09:23 +02:00
1 parent c9e6261cf1
commit 984cc820c0
5 files changed
+2006 -2063

No files matched your search

@@ -31,8 +31,8 @@ struct PostFXUniforms {
float bleeding;
float pixel_scale;
float time;
float oversample;
float flicker;
float pad2;
// vec4 #3 — paràmetres de scanlines (exposats per preset YAML)
float scan_dark_ratio;
float scan_dark_floor;
@@ -82,7 +82,7 @@ fragment float4 postfx_fs(PostVOut in [[stage_in]],
float3 colour;
if (u.bleeding > 0.0f) {
float tw = float(scene.get_width());
float step = u.oversample / tw;
float step = 1.0f / tw;
float3 ycc = rgb_to_ycc(base);
float3 ycc_l2 = rgb_to_ycc(scene.sample(samp, uv - float2(2.0f*step, 0.0f)).rgb);
float3 ycc_l1 = rgb_to_ycc(scene.sample(samp, uv - float2(1.0f*step, 0.0f)).rgb);