Commit b9801e52 authored by unknown's avatar unknown
Browse files

It's all broken! LS Stuff that is.

parent 0ff587f2
......@@ -134,26 +134,14 @@ bool bvh__nearestIntersection(const in Ray ray, inout Hit hit)
#ifdef USE_LS
bool ls_hits = false;
float distance = FLT_MAX;
//mesh id != 0 crashes.... ._.
ls_hits = bool(int(ls_hits) | int(linespace__traverse(0, ray, hit, distance)));
// ls_hits = bool(int(ls_hits) | int(linespace__traverse(1, ray, hit, distance)));
// ls_hits = bool(int(ls_hits) | int(linespace__traverse(2, ray, hit, distance)));
// ls_hits = bool(int(ls_hits) | int(linespace__traverse(3, ray, hit, distance)));
// ls_hits = bool(int(ls_hits) | int(linespace__traverse(4, ray, hit, distance)));
// for(int mesh_id = 0; mesh_id < 5; ++mesh_id){
// ls_hits = linespace__traverse(mesh_id, ray, hit);
// //ls_hits = bool(int(ls_hits) | int(linespace__traverse(mesh_id, ray, hit)));
// }
return ls_hits;
//return linespace__traverse(4, ray, hit);
//bool hits = false;
//for (int i = 0; i < b_meshes.length(); ++i)
//{
// hits = bool(int(hits) | int(linespace__traverse(i, ray, hit)));
// //current_t = min_t;
//}
//return hits;
#else
float current_t = FLT_MAX;
......
......@@ -98,7 +98,7 @@ namespace glare
core::ClockGL::instance().start();
m_render_shader->dispatchCompute2D(width, 4, height, 4);
++m_current_sample;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment