Set C standard to C11 and add new assets
Changed CMakeLists.txt to set the C standard to C11. Added multiple binary image files for new visual assets. Added several new image files to enhance rendering capabilities. Changed stb_image.h to improve support for various image formats. Changed ray tracing engine to enhance ray creation and intersection. Changed triangle structure to use a vertex array for better attribute handling. Changed scene initialization to accommodate new texture management.
This commit is contained in:
@@ -62,9 +62,9 @@ static inline aabb_t compute_primitives_aabb(const triangle_collection_t* triang
|
||||
for (uint64_t i = start + 1; i < start + count; ++i)
|
||||
{
|
||||
triangle_index = primitive_indices[i];
|
||||
aabb_growth(&bounds, triangles->buffer[triangle_index].point_1);
|
||||
aabb_growth(&bounds, triangles->buffer[triangle_index].point_2);
|
||||
aabb_growth(&bounds, triangles->buffer[triangle_index].point_3);
|
||||
aabb_growth(&bounds, triangles->buffer[triangle_index].vertices[0].position);
|
||||
aabb_growth(&bounds, triangles->buffer[triangle_index].vertices[1].position);
|
||||
aabb_growth(&bounds, triangles->buffer[triangle_index].vertices[2].position);
|
||||
}
|
||||
|
||||
return bounds;
|
||||
|
||||
Reference in New Issue
Block a user