New documentation

This commit is contained in:
mklefrancois 2020-08-31 16:57:10 +02:00
parent e1dff2a4e7
commit 3465e08c77
31 changed files with 2825 additions and 55 deletions

View file

@ -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;