Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Add Distance and Atmospheric Fog support #6412

Closed
wants to merge 79 commits into from

Commits on Oct 29, 2022

  1. Add fog support to bevy_pbr

    coreh committed Oct 29, 2022
    Configuration menu
    Copy the full SHA
    014a9cb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6458025 View commit details
    Browse the repository at this point in the history
  3. Add fog documentation

    coreh committed Oct 29, 2022
    Configuration menu
    Copy the full SHA
    dfbd7f6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d7afc3e View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2022

  1. Configuration menu
    Copy the full SHA
    fb588a5 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2022

  1. Make Fog a Component instead of a Resource

    Allowing independent per-camera configuration
    coreh committed Nov 1, 2022
    Configuration menu
    Copy the full SHA
    0d2afb9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8855bdd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f7fb67e View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2022

  1. Remove FogMode::Off

    coreh committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    8c8aa79 View commit details
    Browse the repository at this point in the history
  2. Add Fog example

    coreh committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    d999308 View commit details
    Browse the repository at this point in the history
  3. Fix clippy issues

    coreh committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    c446fcc View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2022

  1. Configuration menu
    Copy the full SHA
    2138dfc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b7c478f View commit details
    Browse the repository at this point in the history
  3. Add semicolon

    coreh committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    db1eca0 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'main' into fog

    coreh committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    1e7f6c3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6b8a196 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6d2a41a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7de98fd View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    505a5a2 View commit details
    Browse the repository at this point in the history
  9. Fix clippy issue

    coreh committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    e13c5c3 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2022

  1. Configuration menu
    Copy the full SHA
    5d8f708 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e7a4a98 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ddb4eb9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    48295a0 View commit details
    Browse the repository at this point in the history
  5. Optimize/cleanup shader code

    coreh committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    7a88d0e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    50f0f50 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    00226a3 View commit details
    Browse the repository at this point in the history
  8. Merge branch 'main' into fog

    coreh committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    e18f682 View commit details
    Browse the repository at this point in the history
  9. Merge branch 'main' into fog

    coreh committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    e4f01e2 View commit details
    Browse the repository at this point in the history
  10. Add atmospheric fog example

    coreh committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    e626862 View commit details
    Browse the repository at this point in the history
  11. Fix clippy issue

    coreh committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    270dcd9 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8ecba3b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    68447a2 View commit details
    Browse the repository at this point in the history
  14. Improve documentation

    coreh committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    a2a5b07 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    a4ee547 View commit details
    Browse the repository at this point in the history
  16. Improve documentation

    coreh committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    e0195d3 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    e830d93 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a998fa8 View commit details
    Browse the repository at this point in the history
  19. Improve documentation

    coreh committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    c608a75 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    aeafcc7 View commit details
    Browse the repository at this point in the history
  21. Fix clippy issue

    coreh committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    ecea533 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    73ad380 View commit details
    Browse the repository at this point in the history
  23. Add comments explaining values

    coreh committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    3323542 View commit details
    Browse the repository at this point in the history
  24. Fix documentation tests

    coreh committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    92dac89 View commit details
    Browse the repository at this point in the history
  25. Update examples/README.md

    coreh committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    256fce6 View commit details
    Browse the repository at this point in the history
  26. Merge branch 'main' into fog

    coreh committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    be50d07 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    50a41cd View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    a35783a View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    8261011 View commit details
    Browse the repository at this point in the history
  30. Fix search and replace mishap

    coreh committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    11f1bb5 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    cbb330c View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    bf668da View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2022

  1. Merge branch 'main' into fog

    coreh committed Nov 6, 2022
    Configuration menu
    Copy the full SHA
    e3b65c8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    036fbd3 View commit details
    Browse the repository at this point in the history
  3. Improve documentation

    coreh committed Nov 6, 2022
    Configuration menu
    Copy the full SHA
    9f3b0c4 View commit details
    Browse the repository at this point in the history
  4. Use “glow” instead of “halo” in explanation

    Turns out “halo” is a specific, actual atmospheric effect (caused by ice crystals)
    we might want to support in the future.
    coreh committed Nov 6, 2022
    Configuration menu
    Copy the full SHA
    49a3f1e View commit details
    Browse the repository at this point in the history
  5. Improve documentation

    coreh committed Nov 6, 2022
    Configuration menu
    Copy the full SHA
    f9056c0 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2022

  1. Configuration menu
    Copy the full SHA
    3c9b359 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2022

  1. Fix additional constant typos

    coreh committed Nov 9, 2022
    Configuration menu
    Copy the full SHA
    e123574 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2022

  1. Merge branch 'main' into fog

    coreh committed Nov 12, 2022
    Configuration menu
    Copy the full SHA
    2664ca1 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2022

  1. Configuration menu
    Copy the full SHA
    d54dce2 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2022

  1. Merge branch 'main' into fog

    coreh committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    ccfb0ce View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2023

  1. Break up long lines in WGSL shaders for readability

    Co-authored-by: Robert Swain <robert.swain@gmail.com>
    coreh and superdump committed Jan 15, 2023
    Configuration menu
    Copy the full SHA
    6ab1188 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f44e381 View commit details
    Browse the repository at this point in the history
  3. Improve documentation wording

    Co-authored-by: JMS55 <47158642+JMS55@users.noreply.github.com>
    coreh and JMS55 committed Jan 15, 2023
    Configuration menu
    Copy the full SHA
    aa3fef7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f1cebd2 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'main' into fog

    coreh committed Jan 15, 2023
    Configuration menu
    Copy the full SHA
    f9ceb4c View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2023

  1. Merge branch 'main' into fog

    coreh committed Jan 21, 2023
    Configuration menu
    Copy the full SHA
    820a6b1 View commit details
    Browse the repository at this point in the history
  2. Make sure apply_fog() function is not defined during normal prepass

    Otherwise the shader will fail compilation, since the `fog` uniform, defined in
    `bevy_pbr::mesh_view_bindings` will not be available, since that file is not imported
    by the prepass shader. (but `bevy_pbr::pbr_functions` is)
    coreh committed Jan 21, 2023
    Configuration menu
    Copy the full SHA
    cd11d43 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'main' into fog

    coreh committed Jan 21, 2023
    Configuration menu
    Copy the full SHA
    df77ce3 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2023

  1. Fix code for creating exponential squared fog

    Both math and enum variants were off
    
    Co-authored-by: robtfm <50659922+robtfm@users.noreply.github.com>
    coreh and robtfm committed Jan 28, 2023
    Configuration menu
    Copy the full SHA
    15afdfb View commit details
    Browse the repository at this point in the history
  2. Remove unused KOSCHMIEDER_CONTRAST_THRESHOLD constant

    Co-authored-by: robtfm <50659922+robtfm@users.noreply.github.com>
    coreh and robtfm committed Jan 28, 2023
    Configuration menu
    Copy the full SHA
    c4eb571 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    28f4fb0 View commit details
    Browse the repository at this point in the history
  4. Reorder GpuFog fields for better struct packing

    Hopefully reducing GPU-side memory consumption and improving transfer speeds
    
    Co-authored-by: Robert Swain <robert.swain@gmail.com>
    coreh and superdump committed Jan 28, 2023
    Configuration menu
    Copy the full SHA
    8b99f6f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1e3ab2c View commit details
    Browse the repository at this point in the history
  6. Merge branch 'main' into fog

    coreh committed Jan 28, 2023
    Configuration menu
    Copy the full SHA
    5fd6a42 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8c4d4e9 View commit details
    Browse the repository at this point in the history
  8. Use multiplication instead of pow() with 2.0

    That way it's slightly faster if the compiler doesn't optimize it
    
    Co-authored-by: Robert Swain <robert.swain@gmail.com>
    coreh and superdump committed Jan 28, 2023
    Configuration menu
    Copy the full SHA
    4608dbd View commit details
    Browse the repository at this point in the history
  9. Pass fragment and view positions and calculate view_to_world in `ap…

    …ply_fog()`
    
    Thus simplifying future replacement of `apply_fog()` function for non-uniform (e.g. height-based) fogs.
    coreh committed Jan 28, 2023
    Configuration menu
    Copy the full SHA
    fee838d View commit details
    Browse the repository at this point in the history