![]() # Objective - Fix #19759 - The bigger permutation table only comes into play for higher dimensions than 1, when you start doing `PERMUTATION_TABLE[PERMUTATION_TABLE[index] + some_number]` - The bigger permutation table has no mathematical meaning, it's just there to avoid having to write more `& 0xFF` when doing multiple nested lookups in higher dimensions - But we only use 1D Perlin noise for the camera shake because we want the dimensions to be uncorrelated ## Solution - So, we can trim the permutation table down :) - This should be mathematically identical, as a wrapped value will still access the same element as an unwrapped value would in the bigger table - The comment was a bit misleading anyways. "mirror" did not refer to "mirrored values" but to "repeated values". ## Testing - Ran the example. Still behaves like before. |
||
---|---|---|
.. | ||
2d_on_ui.rs | ||
2d_screen_shake.rs | ||
2d_top_down_camera.rs | ||
camera_orbit.rs | ||
custom_projection.rs | ||
first_person_view_model.rs | ||
projection_zoom.rs |