#543 closed task (fixed)
Replace skybox with black background
Reported by: | Philip Taylor | Owned by: | Jay Weisskopf |
---|---|---|---|
Priority: | Nice to Have | Milestone: | |
Component: | Core engine | Keywords: | simple |
Cc: | Patch: |
Description
Per discussion here, it would be good to try disabling the skybox and rendering flat black when looking outside the terrain.
Water reflections should still use the skybox as normal.
See CRenderer
's calls to RenderSky
. I think the background colour is set by Render
in GameSetup.cpp
, so that should probably be changed to always set it to black.
Attachments (1)
Change History (7)
by , 14 years ago
Attachment: | black_background.patch added |
---|
comment:1 by , 14 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
Attached a patch which appears to have the desired effect. RenderSky is called twice, once for reflections and once for the player's viewpoint. Removing the call for the player's viewpoint renders the background a solid color while keeping pretty clouds in the water reflection.
comment:2 by , 14 years ago
Keywords: | review added |
---|
comment:3 by , 14 years ago
Thanks! Seems to work fine for me. I just changed it a little bit to get the black from the .cfg file instead of from the code, since we already had that config code and we might as well use it.
comment:4 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:6 by , 8 years ago
Keywords: | review removed |
---|
This patch appears to have your desired effect.