Skip to content
Snippets Groups Projects
Commit d87a1284 authored by Vanessa Karolek's avatar Vanessa Karolek
Browse files

[#92] add raytracing shader templates (TODO)

ToDo: implement shaders, adjust push_constants, descriptorSets / -Writes etc.
parent 3a438632
No related branches found
No related tags found
1 merge request!75Resolve "RTX-Module"
Pipeline #27067 passed
#version 460
#extension GL_EXT_ray_tracing : require
layout(binding = 3, set 0) buffer vertices
{
vec3 vertices[];
};
layout(binding = 4, set 0) buffer indices
{
uint indices[];
};
void main() {
}
#version 460
#extension GL_EXT_ray_tracing : require
// A location for a ray payload (we can have multiple of these)
layout(location = 0) rayPayloadEXT RayPayload pay;
layout(binding = 0, set = 0, rgba32f) uniform image2D outImg; // the output image -> maybe use 16 bit values?
layout(binding = 1, set = 0) uniform accelerationStructureEXT tlas; // top level acceleration structure (for the noobs here (you!))
layout( push_constant ) uniform constants { // TODO: add push_constants in main.cpp!
vec4 camera_position; // as origin for ray generation
vec4 camera_right; // for computing ray direction
vec4 camera_up; // for computing ray direction
vec4 camera_forward; // for computing ray direction
uint frameCount; // what is this? the actual frame?
};
void main() {
// TODO
}
\ No newline at end of file
#version 460
#extension GL_EXT_ray_tracing : require
void main() {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment