Cubemaps (Source 2)

From Valve Developer Community
Revision as of 02:01, 26 November 2024 by Kr0tchet (talk | contribs) (Draft for Source 2 cubemaps page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)
Icon-under construction-blue.png
This is a draft page. It is a work in progress open to editing by anyone.
Remember to check for any notes left by the tagger at this article's talk page.
Env cubemap.png
An example of specular reflections on some models (exaggerated through r_showenvcubemap).

A cubemap is a texture that represents a three-dimensional rendering of an area. Source 2 Source 2 has env_cubemap and env_cubemap_box entities as sampling points to generate these textures, which are then integrated into the map file. Cubemaps, when built, are reflected on materials that use the $envmap parameter (surfaces such as reflective glass, tiles, water, etc.) A map without built or existing env_cubemap or env_cubemap_box entities will instead use other kinds of "reflections" that don't properly depict it.


Building cubemaps

[Todo]