Cubemaps (Source 2): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
[[File:Specular.jpg|thumb|right|300px|An example of specular reflections on some models (exaggerated through {{cmd|r_showenvcubemap}}).]]
[[File:Specular.jpg|thumb|right|300px|An example of specular reflections on some models (exaggerated through {{cmd|r_showenvcubemap}}).]]
A '''cubemap''' is a texture that represents a three-dimensional rendering of an area. {{source2|4.1}} has {{ent|env_cubemap}} and {{ent|env_cubemap_box}} entities as sampling points to generate these textures, which are then integrated into the [[VPK|map file]]. <!-- old stuff for S1 commented out. !!! Cubemaps, when [[#Building cubemaps|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. --> Cubemaps in Source 2 are also [[Parallax Corrected Cubemaps|parallax corrected]].
A '''cubemap''' is a texture that represents a three-dimensional rendering of an area. {{source2|4.1}} has {{ent|env_cubemap}} and {{ent|env_cubemap_box}} entities as sampling points to generate these textures, which are then integrated into the [[VPK|map file]]. <!-- old stuff for S1 commented out. !!! Cubemaps, when [[#Building cubemaps|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. --> Cubemaps in Source 2 are also [[Parallax Corrected Cubemaps|parallax corrected]].
{{Todo|Document about [[env_cubemap_fog]].}}


==Building cubemaps==
==Building cubemaps==
{{Todo}}
{{Todo}}

Revision as of 02:24, 26 November 2024

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 in Source 2 are also parallax corrected.

Todo: Document about env_cubemap_fog.

Building cubemaps

[Todo]