New documentation
This commit is contained in:
parent
e1dff2a4e7
commit
3465e08c77
31 changed files with 2825 additions and 55 deletions
|
|
@ -6,13 +6,11 @@
|
|||
#include "raycommon.glsl"
|
||||
#include "wavefront.glsl"
|
||||
|
||||
hitAttributeEXT vec3 HitAttribute;
|
||||
|
||||
layout(binding = 7, set = 1, scalar) buffer allSpheres_
|
||||
{
|
||||
Sphere i[];
|
||||
}
|
||||
allSpheres;
|
||||
Sphere allSpheres[];
|
||||
};
|
||||
|
||||
|
||||
struct Ray
|
||||
|
|
@ -60,7 +58,7 @@ void main()
|
|||
ray.direction = gl_WorldRayDirectionEXT;
|
||||
|
||||
// Sphere data
|
||||
Sphere sphere = allSpheres.i[gl_PrimitiveID];
|
||||
Sphere sphere = allSpheres[gl_PrimitiveID];
|
||||
|
||||
float tHit = -1;
|
||||
int hitKind = gl_PrimitiveID % 2 == 0 ? KIND_SPHERE : KIND_CUBE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue