From 0f08a0f511d71b44d30b0c78c41130532f52a7ca Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Tue, 14 Jun 2022 01:34:54 +0200 Subject: [PATCH] Re-enable ray query in the shader --- wadsrc/static/shaders/glsl/main.fp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wadsrc/static/shaders/glsl/main.fp b/wadsrc/static/shaders/glsl/main.fp index dd202b5ca..71a97e346 100644 --- a/wadsrc/static/shaders/glsl/main.fp +++ b/wadsrc/static/shaders/glsl/main.fp @@ -352,7 +352,7 @@ float shadowAttenuation(vec4 lightpos, float lightcolorA) vec3 origin = pixelpos.xyz; vec3 direction = normalize(lightpos.xyz - pixelpos.xyz); float lightDistance = distance(pixelpos.xyz, lightpos.xyz); - /* + rayQueryEXT rayQuery; rayQueryInitializeEXT(rayQuery, TopLevelAS, gl_RayFlagsTerminateOnFirstHitEXT, 0xFF, origin, 0.01f, direction, lightDistance); @@ -364,7 +364,6 @@ float shadowAttenuation(vec4 lightpos, float lightcolorA) { return 0.0; } - */ return 1.0; }