1#version 460 2#extension GL_EXT_ray_tracing : enable 3layout(location = 1) rayPayloadInEXT vec4 incomingPayload; 4void main() 5{ 6 uvec3 v0 = gl_LaunchIDEXT; 7 uvec3 v1 = gl_LaunchSizeEXT; 8 int v2 = gl_PrimitiveID; 9 int v3 = gl_InstanceID; 10 int v4 = gl_InstanceCustomIndexEXT; 11 vec3 v5 = gl_WorldRayOriginEXT; 12 vec3 v6 = gl_WorldRayDirectionEXT; 13 vec3 v7 = gl_ObjectRayOriginEXT; 14 vec3 v8 = gl_ObjectRayDirectionEXT; 15 float v9 = gl_RayTminEXT; 16 float v10 = gl_RayTmaxEXT; 17 float v11 = gl_HitTEXT; 18 uint v12 = gl_HitKindEXT; 19 mat4x3 v13 = gl_ObjectToWorldEXT; 20 mat4x3 v14 = gl_WorldToObjectEXT; 21 int v15 = gl_GeometryIndexEXT; 22 mat3x4 v16 = gl_ObjectToWorld3x4EXT; 23 mat3x4 v17 = gl_WorldToObject3x4EXT; 24 incomingPayload = vec4(0.5f); 25 if (v2 == 1) 26 ignoreIntersectionEXT(); 27 else 28 terminateRayEXT(); 29} 30