Skip to content

Skybox fixes - #515

Closed
Baplar wants to merge 12 commits into
DoubleStyx:masterfrom
Baplar:procedural-skybox
Closed

Baplar wants to merge 12 commits into
DoubleStyx:masterfrom
Baplar:procedural-skybox

Conversation

@Baplar

@Baplar Baplar commented May 20, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #424, #454, #414 and #530

Skies now work for all types: procedural, gradient, and projection 360.

@Baplar
Baplar force-pushed the procedural-skybox branch 5 times, most recently from 0a5cdb5 to dcf9bc9 Compare May 20, 2026 18:49
@Baplar
Baplar marked this pull request as ready for review May 20, 2026 19:37
@Baplar

Baplar commented May 20, 2026

Copy link
Copy Markdown
Collaborator Author

It works great! Works for procedural and gradient skies.

The projection 360 is still broken though. According to the logs, it might actually never be instanced, so there might be an issue with its pipeline upstream.

@Baplar

Baplar commented May 21, 2026

Copy link
Copy Markdown
Collaborator Author

I added a workaround for the projection 360 skybox z-fighting with what I can only assume is the clip far-plane itself.
I did this by adding the smallest possible float to the Z axis of the clip position.

It might still be worth investigating what could possibly be z-fighting.
It may be an implementation detail of wgpu that any fragment at Z=0 will lose a Greater Z-Test ?

@Baplar
Baplar force-pushed the procedural-skybox branch from a9676ae to bc2f610 Compare May 21, 2026 23:46
@Baplar
Baplar force-pushed the procedural-skybox branch from bc2f610 to 29af598 Compare May 22, 2026 00:17
@DoubleStyx

Copy link
Copy Markdown
Owner

Sorry, I merged this before the rebase happened. Thank you for the fix!

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.

ProceduralSkyMaterial varies wildly in color and brightness depending on gaze orientation

2 participants