Skip to content

Add a custom 2D SkyBox renderer to the game client#534

Open
copperpixel wants to merge 1 commit intomapbase-source:developfrom
copperpixel:feat/skyrenderer_sp
Open

Add a custom 2D SkyBox renderer to the game client#534
copperpixel wants to merge 1 commit intomapbase-source:developfrom
copperpixel:feat/skyrenderer_sp

Conversation

@copperpixel
Copy link
Copy Markdown

@copperpixel copperpixel commented May 7, 2026

This PR implements a custom 2D SkyBox renderer in the game client that aims to address issues with Valve's renderer without doing any memory patching.

Most notably, the client renderer does the following:

  • Fixes sky faces being visibly culled on high FOVs
  • Fixes issues with loading skies that don't provide materials for all faces
  • Fallbacks to drawing the error texture on missing faces instead of the hall of mirrors effect (error texture is affected by fog so appearance may differ)
  • In SP, it makes the skybox_swapper entity work properly
Before After
image image

Engine renderer can be toggled with r_skybox_use_new_renderer ConVar.

We've shipped this for a few days now in Team Fortress 2 Classified without any reported issues.

Does this PR close any issues?

PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

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