New version of the samples and tutorials based on KHR_ray_tracing
This commit is contained in:
parent
2fd15056a2
commit
b6402f0c09
271 changed files with 134108 additions and 2 deletions
17
ray_tracing_manyhits/shaders/raytrace2.rchit
Normal file
17
ray_tracing_manyhits/shaders/raytrace2.rchit
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#version 460
|
||||
#extension GL_EXT_ray_tracing : require
|
||||
#extension GL_GOOGLE_include_directive : enable
|
||||
|
||||
#include "raycommon.glsl"
|
||||
|
||||
layout(location = 0) rayPayloadInEXT hitPayload prd;
|
||||
layout(shaderRecordEXT) buffer sr_
|
||||
{
|
||||
vec4 c;
|
||||
}
|
||||
shaderRec;
|
||||
|
||||
void main()
|
||||
{
|
||||
prd.hitValue = shaderRec.c.rgb;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue