Updated Skyboxes (markdown)

Blixibon 2020-12-02 17:48:20 -06:00
parent f3fa26a324
commit c43472f502

@ -1,10 +1,10 @@
**sky_camera** is the entity used to create a skybox. The area around it will be projected around the map via the `tools/skybox` texture. [Click here for more information on sky_camera in Source.](https://developer.valvesoftware.com/wiki/Sky_camera) **sky_camera** is the entity used to create a skybox. The area around it will be projected around the map via the `tools/skybox` texture. [Click here for more information on sky_camera in Source.](https://developer.valvesoftware.com/wiki/Sky_camera)
Outside of Mapbase, sky_camera is static. Once it's been placed, the skybox can't move. You can move the sky_camera itself through things like logic_measure_movement, but it doesn't update the skybox. There is a trick to update the skybox by continuously removing and respawning the sky_camera, but this is a complicated workaround and usually isn't very smooth. Outside of Mapbase, sky_camera is static. Once it's been placed, the skybox can't move. You can move the sky_camera itself through things like logic_measure_movement, but it doesn't update the skybox. There is a trick to update the skybox by continuously removing and respawning the sky_camera, but this is a complicated workaround and usually isn't very smooth. `sky_camera` is also not capable of rotating the skybox.
## Moving skyboxes ## Moving skyboxes
In Mapbase, sky_camera has been updated to support parenting and continuous updating. Not just that, but there's a new option to use the sky_camera's angles for actual skybox rotation rather than fog direction. In Mapbase, sky_camera has been updated to support parenting and continuous updating. There's also a new keyvalue to use the sky_camera's angles for actual skybox rotation rather than fog direction.
Together, these changes create the ability for the skybox to move around freely relative to the world. Together, these changes create the ability for the skybox to move around freely relative to the world.
@ -16,7 +16,7 @@ Together, these changes create the ability for the skybox to move around freely
* **StartUpdating** `<void>` - Begins per-tick skybox updating, which is needed if you want this sky_camera to move. * **StartUpdating** `<void>` - Begins per-tick skybox updating, which is needed if you want this sky_camera to move.
* **StopUpdating** `<void>` - Ends per-tick skybox updating if it was enabled before. * **StopUpdating** `<void>` - Ends per-tick skybox updating if it was enabled before.
There's also a spawnflag for a sky_camera to spawn continuously updating its position. There's also a spawnflag for a sky_camera to spawn continuously updating its position without having to use the `StartUpdating` input.
## Multiple skyboxes ## Multiple skyboxes
@ -37,4 +37,4 @@ This was intended to be used to make the skybox match the color of dense fog, bu
## New fog inputs/keyvalues ## New fog inputs/keyvalues
`sky_camera` now has inputs and keyvalues from `env_fog_controller`, which allows for more skybox fog control. Lerping is not yet supported. `sky_camera` now has inputs and keyvalues from `env_fog_controller`, which allows for more skybox fog control. Lerping is currently unsupported.