16 const glm::vec3 center = glm::make_mat4(f.
GetMatrix().data()) * glm::vec4(0.0f, -1.0f, 0.0f, 1.0f);
18 const float delta_x = pos.x - center.x;
19 const float delta_y = pos.y - center.y;
20 const float delta_z = pos.z - center.z;
22 return delta_x * delta_x + delta_y * delta_y + delta_z * delta_z;
37 std::lock_guard<std::mutex> lock_faces(
mutex_faces);
45 glBindBuffer(GL_ARRAY_BUFFER,
data_VBO);
47 glBindBuffer(GL_ARRAY_BUFFER, 0);
57 glBindBuffer(GL_ARRAY_BUFFER,
data_VBO);
59 glBindBuffer(GL_ARRAY_BUFFER, 0);