Add support for EXT_ray_flags_primitive_culling. (#2173)

Fixes issue #2169.
This commit is contained in:
alelenv
2020-04-08 21:09:20 -07:00
committed by GitHub
parent 9c3204a1fd
commit 75de196cec
11 changed files with 126 additions and 106 deletions

View File

@@ -1,6 +1,6 @@
#version 460
#extension GL_NV_ray_tracing : enable
#extension GL_EXT_ray_query : enable
#extension GL_EXT_ray_flags_primitive_culling : enable
struct Ray
{
@@ -192,7 +192,7 @@ void main()
doSomething();
}
if (rayQueryGetRayFlagsEXT(rayQuery) > 0)
if (rayQueryGetRayFlagsEXT(rayQuery) > gl_RayFlagsSkipTrianglesEXT)
{
doSomething();
}