Added samples for ray queries and callable ray tracing shaders
This commit is contained in:
parent
08be260685
commit
f79c9705b4
22 changed files with 1391 additions and 33 deletions
11
data/shaders/glsl/raytracingcallable/callable1.rcall
Normal file
11
data/shaders/glsl/raytracingcallable/callable1.rcall
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#version 460 core
|
||||
#extension GL_EXT_ray_tracing : enable
|
||||
|
||||
layout(location = 0) callableDataInEXT vec3 outColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
// Generate a checker board pattern
|
||||
vec2 pos = vec2(gl_LaunchIDEXT / 8);
|
||||
outColor = vec3(mod(pos.x + mod(pos.y, 2.0), 2.0));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue