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

Refactoring fo envMultiply and envConst chunks #7399

Merged
merged 1 commit into from
Mar 4, 2025
Merged

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Mar 4, 2025

merged chunks and updated their use:
envMultiply and envConst -> envProc

@mvaligursky mvaligursky self-assigned this Mar 4, 2025
@mvaligursky mvaligursky added the area: graphics Graphics related issue label Mar 4, 2025
@mvaligursky mvaligursky requested a review from a team March 4, 2025 11:09
@mvaligursky mvaligursky merged commit 77e2718 into main Mar 4, 2025
7 checks passed
@mvaligursky mvaligursky deleted the mv-chunks-envproc branch March 4, 2025 11:21
@@ -0,0 +1,13 @@
export default /* wgsl */`
#ifdef LIT_SKYBOX_INTENSITY
Copy link
Contributor

Choose a reason for hiding this comment

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

It is worth having a shader variant just to avoid a multiply?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not really, but this code is slightly more complicated than I want to handle during this conversion. Ideally we add skybox intensity to material as well, and unify it all.

@@ -0,0 +1,13 @@
export default /* wgsl */`
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not 100% keen on the envProc naming. skybox?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we already have skybox chunk that does the skybox. This is just a small chunk used by both skybox and lit-shader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants