Re-enable ray query in the shader

This commit is contained in:
Magnus Norddahl 2022-06-14 01:34:54 +02:00 committed by Christoph Oelckers
parent f1775ee64b
commit 0f08a0f511
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}