Changeset 267c4c5 in opengl-game
- Timestamp:
- Mar 30, 2018, 1:38:16 AM (7 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- e856d62
- Parents:
- fc424f6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
new-game.cpp
rfc424f6 r267c4c5 523 523 T = translate(mat4(), vec3(-cam_pos.x, -cam_pos.y, -cam_pos.z)); 524 524 R = rotate(mat4(), -cam_yaw, vec3(0.0f, 1.0f, 0.0f)); 525 // view_mat = R*T; 526 525 view_mat = R*T; 526 527 glUseProgram(shader_program); 528 glUniformMatrix4fv(view_test_loc, 1, GL_FALSE, value_ptr(view_mat)); 529 530 glUseProgram(shader_program2); 527 531 glUniformMatrix4fv(view_mat_loc, 1, GL_FALSE, value_ptr(view_mat)); 532 528 533 cam_moved = false; 529 534 }
Note:
See TracChangeset
for help on using the changeset viewer.