This commit is contained in:
Branimir Karadžić 2018-11-06 20:06:29 -08:00
parent cb926d3f1f
commit e0d0af370d

View File

@ -698,14 +698,18 @@ public:
dde.pop(); dde.pop();
{ {
Plane plane { { 0.0f, 1.0f, 0.0f }, 2.0f }; const float normal[] = { 0.0f, 1.0f, 0.0f };
const float pos[] = { 0.0f, -2.0f, 0.0f };
Plane plane;
bx::calcPlane(plane.m_normal, normal, pos);
dde.setColor(false dde.setColor(false
|| intersect(&dde, ray, plane) || intersect(&dde, ray, plane)
? selected ? selected
: 0xffffffff : 0xffffffff
); );
const float pos[] = { 0.0f, -2.0f, 0.0f };
dde.drawGrid(Axis::Y, pos, 20, 1.0f); dde.drawGrid(Axis::Y, pos, 20, 1.0f);
} }