From 85215f676053334794216bd30bc965ff5b90d512 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Tue, 4 Mar 2025 18:16:13 +0800 Subject: [PATCH] flip UV coords for capture material --- materials/capture_uv.mat | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/materials/capture_uv.mat b/materials/capture_uv.mat index 35d8c53d..11a957b9 100644 --- a/materials/capture_uv.mat +++ b/materials/capture_uv.mat @@ -51,10 +51,7 @@ fragment { void material(inout MaterialInputs material) { prepareMaterial(material); vec4 sp = clamp(variable_screenPos, 0.0, 1.0); - //material.baseColor = vec4(sp.x, sp.y, 0.0f, 1.0); - - vec4 color = textureLod(materialParams_color, sp.xy, 0.0f); - //vec2 uv = getUV0(); + vec4 color = textureLod(materialParams_color, uvToRenderTargetUV(sp.xy), 0.0f); material.baseColor = vec4(color.xyz, 1.0); } } \ No newline at end of file