Commit 861333e2 authored by unknown's avatar unknown
Browse files

reversed als ray generator direction

parent 6198e74e
<linespace version="1.0">
<item name="subdivisions" value="40"/>
<item name="radial-subdivision" value="1"/>
<item name="radial-subdivision" value="10"/>
<item name="generator" value="gpu"/>
</linespace>
......@@ -89,7 +89,7 @@ namespace glare
uint32_t index = offset(patch) + radial_id;
direction *= unsigned(face) > 2 ? -1 : 1;
direction *= unsigned(face) > 2 ? 1 : -1;
Ray test_ray;
test_ray.origin = patchCenter(patch);
......@@ -101,16 +101,6 @@ namespace glare
line_bvh.nearestIntersection(test_ray, nearest);
m_lines[index].triangle = (nearest.barycentric.x != -1) ? int(nearest.triangle) : -1;
//direction *= unsigned(face) > 2 ? 1 : -1;
/* if (radial_id != hemisphere::id_from_direction(direction, radial_subdivisions, unsigned(face) % 3, face_width_axises[unsigned(face) % 3], face_height_axises[unsigned(face) % 3]))
{
Log_Info << "Kjbfaosihndoihj";
}*/
/*if (m_lines[index].triangle == -1)
{
Log_Error << "lajbfhpasiodhpaso";
}*/
}
}
......@@ -199,10 +189,6 @@ namespace glare
data.offsets[0] = unsigned(m_radial_subdivisions);
/*for (int i = 0; i < 15; ++i) {
data.offsets[i] = glm::uint(m_offsets[i]);
}*/
data.line_count = glm::uint(m_num_lines);
return data;
}
......
Markdown is supported
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