Skip to content

Implement volumetric fog support for both point lights and spotlights#15361

Merged
alice-i-cecile merged 6 commits intobevyengine:mainfrom
Soulghost:feature/volumetric_fog
Sep 29, 2024
Merged

Implement volumetric fog support for both point lights and spotlights#15361
alice-i-cecile merged 6 commits intobevyengine:mainfrom
Soulghost:feature/volumetric_fog

Conversation

@Soulghost
Copy link
Copy Markdown
Contributor

@Soulghost Soulghost commented Sep 22, 2024

Objective

Solution

  • Adding volumetric fog sampling code for both point lights and spotlights.

Testing

  • I have modified the example of volumetric_fog.rs by adding a volumetric point light and a volumetric spotlight.
volumetric_fog.mov

@Soulghost Soulghost force-pushed the feature/volumetric_fog branch 3 times, most recently from 95b4ba4 to be5376a Compare September 22, 2024 10:07
@Soulghost Soulghost marked this pull request as ready for review September 22, 2024 10:31
@alice-i-cecile alice-i-cecile added C-Feature A new feature, making something new possible M-Release-Note Work that should be called out in the blog due to impact A-Rendering Drawing game state to the screen labels Sep 22, 2024
@alice-i-cecile alice-i-cecile added X-Uncontroversial This work is generally agreed upon S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Sep 22, 2024
Copy link
Copy Markdown
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing blocking, but a few questions and suggestions. I'll leave the full reviews to the rendering experts, but I'm very pleased to see this!

@Soulghost
Copy link
Copy Markdown
Contributor Author

Hi @alice-i-cecile and @tychedelia , thank you for the guidance. I have refactored the code and added some UI options for the volumetric fog example. Could you please help review this again? Thank you.
image

Copy link
Copy Markdown
Contributor

@IceSentry IceSentry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good to me. I didn't dive too deep into the math, but it looks like it works and nothing is obviously wrong.

@alice-i-cecile alice-i-cecile added this to the 0.15 milestone Sep 24, 2024
@Soulghost Soulghost force-pushed the feature/volumetric_fog branch from d7df0ff to adc2cea Compare September 29, 2024 19:55
Copy link
Copy Markdown
Member

@tychedelia tychedelia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified all the fog examples work.

@tychedelia tychedelia added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Sep 29, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Sep 29, 2024
Merged via the queue into bevyengine:main with commit 39d96ef Sep 29, 2024
MiniaczQ pushed a commit to MiniaczQ/bevy that referenced this pull request Sep 30, 2024
…bevyengine#15361)

# Objective
- Fixes: bevyengine#14451

## Solution
- Adding volumetric fog sampling code for both point lights and
spotlights.

## Testing
- I have modified the example of volumetric_fog.rs by adding a
volumetric point light and a volumetric spotlight.


https://github.com/user-attachments/assets/3eeb77a0-f22d-40a6-a48a-2dd75d55a877
robtfm pushed a commit to robtfm/bevy that referenced this pull request Oct 4, 2024
…bevyengine#15361)

# Objective
- Fixes: bevyengine#14451

## Solution
- Adding volumetric fog sampling code for both point lights and
spotlights.

## Testing
- I have modified the example of volumetric_fog.rs by adding a
volumetric point light and a volumetric spotlight.


https://github.com/user-attachments/assets/3eeb77a0-f22d-40a6-a48a-2dd75d55a877
@alice-i-cecile
Copy link
Copy Markdown
Member

Thank you to everyone involved with the authoring or reviewing of this PR! This work is relatively important and needs release notes! Head over to bevyengine/bevy-website#1702 if you'd like to help out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen C-Feature A new feature, making something new possible M-Release-Note Work that should be called out in the blog due to impact S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it X-Uncontroversial This work is generally agreed upon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Volumetric fog should work with spot lights and point lights

4 participants