Cubemaps (Source 2): Difference between revisions
Jump to navigation
Jump to search
(Draft for Source 2 cubemaps page.) |
No edit summary |
||
Line 4: | Line 4: | ||
[[File:Env_cubemap.png|left]] | [[File:Env_cubemap.png|left]] | ||
[[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]]. 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. | 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]]. | ||
==Building cubemaps== | ==Building cubemaps== | ||
{{Todo}} | {{Todo}} |
Revision as of 02:22, 26 November 2024

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.
Remember to check for any notes left by the tagger at this article's talk page.

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 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.
Building cubemaps
[Todo]