From 917281d8f44ab09afa268ceebd58ec21a2a8f41f Mon Sep 17 00:00:00 2001 From: ternaryop8479 Date: Thu, 26 Mar 2026 23:26:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E5=85=A8=E5=B1=80=E5=85=89=E7=85=A7=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=9C=AA=E5=88=A0=E9=99=A4=E5=AF=BC=E8=87=B4=E5=BD=B1=E5=93=8D?= =?UTF-8?q?=E5=85=89=E8=BF=BD=E8=B4=A8=E9=87=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shaders/raytracing.comp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/shaders/raytracing.comp b/shaders/raytracing.comp index 053cf72..07db985 100644 --- a/shaders/raytracing.comp +++ b/shaders/raytracing.comp @@ -686,9 +686,6 @@ vec3 trace_path_primary_gbuffer(ivec2 pixel_coords, ivec2 image_size, inout uint apply_material_textures(mat0, hit0.normal, hit0.texcoord, hit0.tangent); radiance += throughput * mat0.emission; - if (mat0.type == MATERIAL_DIFFUSE) { - radiance += throughput * eval_direct_lighting(hit0, mat0, seed); - } ScatterResult sc0 = scatter_ray(ray, hit0, mat0, seed); if (!sc0.scattered) return radiance; @@ -711,9 +708,6 @@ vec3 trace_path_primary_gbuffer(ivec2 pixel_coords, ivec2 image_size, inout uint apply_material_textures(mat, hit.normal, hit.texcoord, hit.tangent); radiance += throughput * mat.emission; - if (mat.type == MATERIAL_DIFFUSE) { - radiance += throughput * eval_direct_lighting(hit, mat, seed); - } ScatterResult sc = scatter_ray(ray, hit, mat, seed); if (!sc.scattered) break;