Changeset ebaa95c in opengl-game for new-game.cpp
- Timestamp:
- Jul 2, 2018, 3:08:00 AM (6 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 5c02ddd
- Parents:
- 95595de
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
new-game.cpp
r95595de rebaa95c 1036 1036 transformObject(objects[i], translate(mat4(1.0f), vec3(0.0f, 0.0f, 0.04f)), ubo); 1037 1037 1038 // TODO: Should really compare against the near clipping plane, but also account for1039 // the camera's translation and rotation 1040 if ( objects[i].bounding_center.z - objects[i].bounding_radius > 3.0f) {1038 vec3 obj_center = vec3(view_mat * vec4(objects[i].bounding_center, 1.0f)); 1039 1040 if ((obj_center.z - objects[i].bounding_radius) > -NEAR_CLIP) { 1041 1041 removeObjectFromScene(objects[i], ubo); 1042 1042 }
Note:
See TracChangeset
for help on using the changeset viewer.