• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 460
2#extension GL_EXT_ray_tracing : enable
3layout(binding = 0, set = 0) uniform accelerationStructureEXT accEXT;
4layout(location = 1) rayPayloadEXT vec4 payload;
5layout(shaderRecordEXT) buffer block
6{
7	vec3 dir;
8	vec3 origin;
9};
10void main()
11{
12    uint lx = gl_LaunchIDEXT.x;
13    uint ly = gl_LaunchIDEXT.y;
14    uint sx = gl_LaunchSizeEXT.x;
15    uint sy = gl_LaunchSizeEXT.y;
16    traceRayEXT(accEXT, lx, ly, sx, sy, 0u, origin, 0.5f, dir, 0.75f, 1);
17}
18