Skip to content

Commit

Permalink
Merge pull request #11 from IceSentry/pcwalton-rocks-new-images
Browse files Browse the repository at this point in the history
New images
  • Loading branch information
alice-i-cecile authored Jun 26, 2024
2 parents a96726d + 1afe5f0 commit 32b35cb
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 1 deletion.
Binary file modified content/news/draft-bevy-0.14/after_pcf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/news/draft-bevy-0.14/before_pcf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/news/draft-bevy-0.14/bokeh_dof.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/news/draft-bevy-0.14/no_dof.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed content/news/draft-bevy-0.14/volumetric_fog.png
Binary file not shown.
Binary file modified content/news/draft-bevy-0.14/with_anisotropy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified content/news/draft-bevy-0.14/without_anisotropy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ As you might expect, this is both prettier and more computationally expensive!

In particular, this allows for the creation of stunningly beautiful "god rays" (more properly, crepuscular rays) shining through the fog.

![A beautiful town square is rendered in Bevy. Light fog covers it, and beams of light pierce the fog around a tree at its center, lighting the top of its leaves.](volumetric_fog.png)
{{ compare_slider(
left_title="Without Volumetric Fog",
left_image="without_volumetric_fog.png",
right_title="With Volumetric Fog",
right_image="with_volumetric_fog.png"
) }}

Bevy's algorithm, which is implemented as a postprocessing effect, is a combination of the techniques described in [Scratchapixel](https://www.scratchapixel.com/lessons/3d-basic-rendering/volume-rendering-for-developers/intro-volume-rendering.html) and [Alexandre Pestana's blog post](https://www.alexandre-pestana.com/volumetric-lights/). It uses raymarching in screen space, transformed into shadow map space for sampling and combined with physically-based modeling of absorption and scattering. Bevy employs the widely-used Henyey-Greenstein phase function to model asymmetry; this essentially allows light shafts to fade into and out of existence as the user views them.

Expand Down

0 comments on commit 32b35cb

Please sign in to comment.