Skip to content

Separate 3D camera to subviewport, added environment settings from 4.4 - #158

Open
the-furry-hubofeverything wants to merge 2 commits into
ExpiredPopsicle:mainfrom
the-furry-hubofeverything:main
Open

Separate 3D camera to subviewport, added environment settings from 4.4#158
the-furry-hubofeverything wants to merge 2 commits into
ExpiredPopsicle:mainfrom
the-furry-hubofeverything:main

Conversation

@the-furry-hubofeverything

@the-furry-hubofeverything the-furry-hubofeverything commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

Had some issues with draw order.

Changing the WorldEnvironment meant also changing the UI environment settings, like tonemap and exposure. To seperate the background colour from the tonemap changes, a subviewport is used.

This might have a performance impact, but I think the ability to customize the 3d environment is worth it. Lmk if there's a better way.

Closes #139

@the-furry-hubofeverything the-furry-hubofeverything changed the title Separate 3D camera to subviewport Separate 3D camera to subviewport, added environment settings from 4.4 Feb 5, 2026
@the-furry-hubofeverything

Copy link
Copy Markdown
Contributor Author

Before change

Before changes

After change

After changes

@the-furry-hubofeverything

Copy link
Copy Markdown
Contributor Author

Oh oops updated submodule by accident one sec

@the-furry-hubofeverything

Copy link
Copy Markdown
Contributor Author

There we go!

@the-furry-hubofeverything

Copy link
Copy Markdown
Contributor Author

This needs testing of different environments. Please feel free to try this out, especially on Mac and windows

@Drikanis

Copy link
Copy Markdown
Contributor

Tested on windows, x11 xfce, wayland plasma and sway. Seems to work as advertised.

However, it breaks the Anaglyph3d mod that's bundled with snekstudio, which needs the CameraBoom and can't find it because it's been moved.

@the-furry-hubofeverything

Copy link
Copy Markdown
Contributor Author

Tested on windows, x11 xfce, wayland plasma and sway. Seems to work as advertised.

However, it breaks the Anaglyph3d mod that's bundled with snekstudio, which needs the CameraBoom and can't find it because it's been moved.

Mods updated to work with the new structure!

@Drikanis

Copy link
Copy Markdown
Contributor

@ExpiredPopsicle I tested and don't see anything amiss!

Allows setting environment and camera settings without affecting UI elements. Fixes ExpiredPopsicle#139
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.

Scene tonemap exposure is applied to popped out windows

2 participants