Skip to content

Conversation

mate-h
Copy link
Contributor

@mate-h mate-h commented Oct 4, 2025

Objective

  • Occlude the directional lights by the atmosphere
  • More Physically accurate light values reaching the objects from directional lights
  • Support volumetric shadowing through the atmosphere with an additional layer of FogVolume
  • Strategic direction: use the FogVolume and expand on that implementation for shadow sampling Since it already uses pipeline specialization.
  • For now keep the atmosphere pipeline as is, free from shadow sampling code since these effects only matter at large scales. Shadow sampling for the atmosphere can be implemented in a later PR for planetary rings, objects in space, other large scale objects.

Solution

  • Bind the transmittance LUT to the core 3d mesh PBR shader
  • tint the incoming light L to point P by the transmittance through the atmospheric medium
  • Apply the same effects to volumetric fog
  • Ensured that new new Atmosphere pipeline key works with deferred rendering
  • Updated example to include water plane and screen space reflections. Removed the water plane from the GLB terrain asset. (small asset churn!)

Testing

cargo run --example atmosphere


Showcase

image

@mate-h mate-h added C-Feature A new feature, making something new possible A-Rendering Drawing game state to the screen M-Needs-Release-Note Work that should be called out in the blog due to impact S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Oct 4, 2025
Copy link
Contributor

github-actions bot commented Oct 4, 2025

It looks like your PR has been selected for a highlight in the next release blog post, but you didn't provide a release note.

Please review the instructions for writing release notes, then expand or revise the content in the release notes directory to showcase your changes.

@mate-h mate-h requested review from atlv24 and JMS55 October 4, 2025 18:00
@ecoskey ecoskey self-requested a review October 5, 2025 05:26
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-Needs-Release-Note Work that should be called out in the blog due to impact S-Needs-Review Needs reviewer attention (from anyone!) to move forward
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant