Cubemaps (Source 2): Difference between revisions
Jump to navigation
Jump to search
Note:If the option "Build cubemaps on load" is checked in Hammer Build Map dialog, as soon the game loads the map after it is compiled, the cubemaps will be automatically built, and the map will be automatically reloaded.
(replaced image with Source 2 version.) |
No edit summary |
||
Line 24: | Line 24: | ||
| {{Command|map}} ''map_name''</code> || Loads the map; replace "''map_name''" with the map's actual name | | {{Command|map}} ''map_name''</code> || Loads the map; replace "''map_name''" with the map's actual name | ||
|- | |- | ||
| {{Command|buildcubemaps}} || Begins building cubemaps. {{Note|Source 2 does not support building cubemaps with number of iterations (e.g.: <code>buildcubemaps 2</code>). (Confirmed on {{cs2}})}} | | {{Command|buildcubemaps}} || Begins building cubemaps. The map will be automatically reloaded, and the new cubemap texture will be shown. {{Note|Source 2 does not support building cubemaps with number of iterations (e.g.: <code>buildcubemaps 2</code>). (Confirmed on {{cs2}})}} | ||
|- | |- | ||
|} | |} | ||
[[Category:Level Design]] | [[Category:Level Design]] |
Revision as of 08:52, 8 February 2025
A cubemap is a texture that represents a three-dimensional rendering of an area. Source 2 has env_cubemap, env_cubemap_box and/or other cubemap entities as sampling points to generate these textures, which are then integrated into the map file. Cubemaps in Source 2 are also parallax corrected if
env_cubemap_box
is used.
Todo: Document about env_cubemap_fog.
Entities
- env_cubemap (only in
)
- env_cubemap_box (only in
)
- env_cubemap_fog (only in
)
- env_combined_light_probe_volume (only in
)
Preview
New in Source 2 Hammer. You can preview cubemaps by going to "Preview Baked Lighting" menu > Bake All Cubemaps. You can also use "Bake Selected Cubemaps" to preview the selected cubemaps.
Building cubemaps

Command | Description |
---|---|
map map_name |
Loads the map; replace "map_name" with the map's actual name |
buildcubemaps |
Begins building cubemaps. The map will be automatically reloaded, and the new cubemap texture will be shown. |