bevy/examples/camera
Jan Hohenheim d770648c2f
Remove unused code in Perlin noise 1D impl (#19765)
# 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.
2025-06-21 15:07:43 +00:00
..
2d_on_ui.rs add 2d_on_ui example (#18513) 2025-06-02 22:11:32 +00:00
2d_screen_shake.rs Remove unused code in Perlin noise 1D impl (#19765) 2025-06-21 15:07:43 +00:00
2d_top_down_camera.rs Split Camera.hdr out into a new component (#18873) 2025-05-26 19:24:45 +00:00
camera_orbit.rs Use en-us locale for typos (#16037) 2024-10-20 18:55:17 +00:00
custom_projection.rs Fix a few subcrate import paths in examples (#19002) 2025-04-30 18:41:17 +00:00
first_person_view_model.rs Update shader_prepass, testbed_2d, and first_person_view_model examples to use children! macro (#18270) 2025-03-22 22:35:20 +00:00
projection_zoom.rs Refactor and simplify custom projections (#17063) 2025-01-01 20:44:24 +00:00