New example, loading glTF scenes instead of individual OBJ. Showing simple path tracing and how to make it 3x faster.
This commit is contained in:
parent
813f392fdf
commit
2eb9b6e522
25 changed files with 4410 additions and 2 deletions
9
ray_tracing_gltf/shaders/raycommon.glsl
Normal file
9
ray_tracing_gltf/shaders/raycommon.glsl
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
struct hitPayload
|
||||
{
|
||||
vec3 hitValue;
|
||||
uint seed;
|
||||
uint depth;
|
||||
vec3 rayOrigin;
|
||||
vec3 rayDirection;
|
||||
vec3 weight;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue