public override void Render() { GL.Disable(EnableCap.Lighting); base.Render(); DrawOrigin(); GL.Enable(EnableCap.Lighting); GL.Color3(0f, 0f, 1f); foreach (OBJ obj in objs) { obj.Render(); } GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Line); GL.Disable(EnableCap.Lighting); foreach (AABB test in tests) { bool intersection = false; foreach (OBJ obj in objs) { if (Intersects.OBJAABBIntersect(test, obj)) { intersection = true; } } if (intersection) { GL.Color3(0f, 1f, 0f); } else { GL.Color3(1f, 0f, 0f); } test.Render(); } GL.Enable(EnableCap.Lighting); GL.PolygonMode(MaterialFace.FrontAndBack, PolygonMode.Fill); }