Add support for EXT_ray_flags_primitive_culling. (#2173)
Fixes issue #2169.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user