Add vk_ray_trace_indirect_scissor sample
This commit is contained in:
parent
27d8a79ce3
commit
a6690f149a
30 changed files with 4498 additions and 6 deletions
|
|
@ -0,0 +1,18 @@
|
|||
#version 460
|
||||
#extension GL_EXT_ray_tracing : require
|
||||
#extension GL_GOOGLE_include_directive : enable
|
||||
#include "raycommon.glsl"
|
||||
|
||||
// During a lantern pass, this closest hit shader is invoked when
|
||||
// shadow rays (rays towards lantern) hit a lantern. Report back
|
||||
// which lantern was hit.
|
||||
|
||||
// clang-format off
|
||||
layout(location = 2) rayPayloadInEXT int hitLanternInstance;
|
||||
|
||||
// clang-format on
|
||||
|
||||
void main()
|
||||
{
|
||||
hitLanternInstance = gl_InstanceCustomIndexEXT;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue