Skip to content

fix: god rays async light source #194

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
merged 7 commits into from
Mar 28, 2025
Merged

Conversation

damienmontastier
Copy link
Member

@damienmontastier damienmontastier commented Mar 28, 2025

This PR fixes a light source issue (Discord message) in <GodRaysPmndrs>. The source (mesh or point) wasn't handling async creation properly, causing missing or incorrect GodRays.

Godrays doesn't accept null lightSource (only Mesh | Points), so I've added a dummyMesh that allows the Godrays effect to have a temporary placeholder. It's then modified by the real value of props.lightSource when it's ready.

Copy link

pkg-pr-new bot commented Mar 28, 2025

Open in Stackblitz

npm i https://pkg.pr.new/@tresjs/post-processing@194

commit: 8cd2dbe

@Tinoooo Tinoooo self-requested a review March 28, 2025 15:44
@Tinoooo Tinoooo merged commit 7c5bfe0 into main Mar 28, 2025
4 checks passed
@Tinoooo Tinoooo deleted the fix/god-rays-async-light-source branch March 28, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants