Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Window laggy input fixes. | 1d136d616277dde9262a3093c802f3d24ca8aa5d | Jackalope | 2020-06-01 12:21:00 |
New shading type SHADOW_MAPPING is added to remove experimental shadow mapping from DEFAULT. | d4651206b1798ddec7e3275352f48445b8a184d2 | Jackalope | 2020-06-01 04:01:29 |
Debug pipelines crash fix. | 9b0a75d94e30eb7fd45360f7fe10429bf05c243e | Jackalope | 2020-06-01 04:00:24 |
Window improvements. scroll_diff and cursor_diff members. Update noclip screen. | 8d659590a0fb52e1e24683305a7ee8699bdff6da | Jackalope | 2020-06-01 01:30:50 |
Update jlib 0.4.1 Update jrf 0.2.2 | d36e5263523a9b0443476b2db8d856e86086af81 | Jackalope | 2020-05-31 23:58:41 |
Update jmath 0.1.2. | 8d3566336ef87f73318e84cde87bdf841240dcdc | Jackalope | 2020-05-31 23:57:25 |
Use scanf instead of fgets for interactive device selection. | fd7ff8b61ef1e21852d6c0a15ab0d17d09c5cccc | Jackalope | 2020-05-31 23:56:34 |
Include FreeType as system library to prevent warnings. | dc92c7f8acdaa90b25cf272f1730d338111780fc | Jackalope | 2020-05-31 23:54:37 |
Add glfw required version. 3.3.1 is not working. | ee727d7efda88af1e8a227b542f5b79d0ba6f301 | Jackalope | 2020-05-31 23:53:33 |
GCC Compatibility. | c828a38456627d0383d431165b802f97fd303349 | Jackalope | 2020-05-29 16:48:24 |
Solved clang compiler warnings from compute module. | b9416237761f8648bbddb7e7ba59e833a7879528 | Jackalope | 2020-05-28 11:09:55 |
CMake: two shaders targets, instead of single target per shader. | a708650319e44c7b98056f3bc85a896dd65d96f3 | Jackalope | 2020-05-28 11:06:13 |
Reduced amount of warnings. | 18bf33ca4e0e7f0369f6b5fdc59b81a8420dde8e | Jackalope | 2020-05-27 15:11:37 |
Replace jl::rarray with generic structure in shader header file. | 1cedb5886becc0f70c19d1c649e96f7eac5e0037 | Jackalope | 2020-05-27 13:07:31 |
Embedding shaders in obj library. | e877e7a688ee4a899480c12acba55c340622f993 | Jackalope | 2020-05-27 12:40:34 |
Update jlib 0.3.0 (refactoring of threads, new thread pool). | 1c713a320ced91d0ad5f1606c39f1187871d28e5 | Jackalope | 2020-05-26 14:44:35 |
Update graphics after change of "wait for monitor" flag. | 29d9b749c803646006b9b0071b54256bd3c08ca8 | Jackalope | 2020-05-26 14:40:34 |
reduced number of -Wno* warnings | bf3ec94ce3020715e246107a47efc9a8772db382 | Jackalope | 2020-05-25 01:48:40 |
Disable "find_package(jlib 0.2.0 REQUIRED)" in jrf | b4903e20d9128227163119fe73e32cda5050cb67 | Jackalope | 2020-05-24 16:40:26 |
Update jrf-0.2.1 | 3518adb37045d4e4eb4488c8c07e3f674f5fbac3 | Jackalope | 2020-05-24 14:33:14 |
File | Lines added | Lines deleted |
---|---|---|
include/jen/screen.h | 4 | 3 |
src/instance/instance.cpp | 1 | 1 |
File include/jen/screen.h changed (mode: 100644) (index e60d4d6..9ef853c) | |||
... | ... | struct jen::screen::Noclip | |
52 | 52 | frustum.zNear = 0.5; | frustum.zNear = 0.5; |
53 | 53 | frustum.zFar = 32000; | frustum.zFar = 32000; |
54 | 54 | view_sensitivity = view_sens; | view_sensitivity = view_sens; |
55 | speed_sensitivity = 0.05f; | ||
55 | speed_sensitivity = 0.2f; | ||
56 | 56 | move_speed = move_spd; | move_speed = move_spd; |
57 | 57 | } | } |
58 | 58 | /// @brief Update camera state from user input and also aspect ratio. | /// @brief Update camera state from user input and also aspect ratio. |
... | ... | struct jen::screen::Noclip | |
96 | 96 | ||
97 | 97 | frustum.set_aspect(window.extent.x, window.extent.y); | frustum.set_aspect(window.extent.x, window.extent.y); |
98 | 98 | ||
99 | move_speed += std::numeric_limits<double>::epsilon(); | ||
100 | move_speed *= 1 + (speed_sensitivity * -window.scroll_diff.y); | ||
99 | if (move_speed == 0) | ||
100 | move_speed = std::numeric_limits<double>::epsilon(); | ||
101 | move_speed *= 1 + (speed_sensitivity * window.scroll_diff.y); | ||
101 | 102 | ||
102 | 103 | auto cursor_diff = jm::v2f::from(window.cursor_diff); | auto cursor_diff = jm::v2f::from(window.cursor_diff); |
103 | 104 | cursor_diff *= view_sensitivity; | cursor_diff *= view_sensitivity; |
File src/instance/instance.cpp changed (mode: 100644) (index b9fcffa..97c82fc) | |||
... | ... | init_window(Window *p, Window::Extent extent, | |
98 | 98 | glfwSetCursorPosCallback(p->p_window, [](GLFWwindow *p_w, double x, double y){ | glfwSetCursorPosCallback(p->p_window, [](GLFWwindow *p_w, double x, double y){ |
99 | 99 | auto &win = *reinterpret_cast<Window*>(glfwGetWindowUserPointer(p_w)); | auto &win = *reinterpret_cast<Window*>(glfwGetWindowUserPointer(p_w)); |
100 | 100 | jm::v2f64 pos = {x, y}; | jm::v2f64 pos = {x, y}; |
101 | win.cursor_diff = pos - win.cursor; | ||
101 | win.cursor_diff += pos - win.cursor; | ||
102 | 102 | win.cursor = pos; | win.cursor = pos; |
103 | 103 | }); | }); |
104 | 104 | glfwSetScrollCallback(p->p_window, [](GLFWwindow *p_w, double x, double y){ | glfwSetScrollCallback(p->p_window, [](GLFWwindow *p_w, double x, double y){ |