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
18
ray_tracing_indirect_scissor/shaders/lanternShadowObj.rchit
Normal file
18
ray_tracing_indirect_scissor/shaders/lanternShadowObj.rchit
Normal file
|
|
@ -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 regular OBJ. Report back
|
||||
// that no lantern was hit (-1).
|
||||
|
||||
// clang-format off
|
||||
layout(location = 2) rayPayloadInEXT int hitLanternInstance;
|
||||
|
||||
// clang-format on
|
||||
|
||||
void main()
|
||||
{
|
||||
hitLanternInstance = -1;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue