From 8e5b46fa39b9ff8342b89366ec8d698afacd18e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Tue, 27 May 2025 07:11:58 +0200 Subject: [PATCH] removed rect light specular hack --- WickedEngine/shaders/lightingHF.hlsli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WickedEngine/shaders/lightingHF.hlsli b/WickedEngine/shaders/lightingHF.hlsli index 11bc0fe9c..a086d504f 100644 --- a/WickedEngine/shaders/lightingHF.hlsli +++ b/WickedEngine/shaders/lightingHF.hlsli @@ -521,7 +521,7 @@ inline void light_rect(in ShaderEntity light, in Surface surface, inout Lighting Lunnormalized = specular_rect - surface.P; L = normalize(Lunnormalized); surface_to_light.create(surface, L); // recompute all surface-light vectors - lighting.direct.specular = mad(light_color_specular, saturate(BRDF_GetSpecular(surface, surface_to_light)), lighting.direct.specular); // saturated BRDF_GetSpecular, otherwise the video reflection will be overly bright! + lighting.direct.specular = mad(light_color_specular, BRDF_GetSpecular(surface, surface_to_light), lighting.direct.specular); #ifdef LIGHTING_SCATTER const half scattering = ComputeScattering(saturate(dot(L, -surface.V)));