Env cubemap: Difference between revisions
Jump to navigation
Jump to search
Note:Cubemaps will contain static props, sprites and decals, such as enemy blood and user sprays.
No edit summary |
(updates. removed the section about placement because that's already detailed on cubemaps.) |
||
Line 1: | Line 1: | ||
{{ | {{lang|Env cubemap}} | ||
| | [[File:Cubemap_build_result.jpeg|thumb|right|A cubemap example containing the white static prop car, a sprite and decals. Note that the blue physics prop car is not visible in the cubemap because it is not static.]] | ||
| | {{base point|env_cubemap|internal=1|sprite=1}} It specifies a location for which a [[cubemap]] will be generated when the {{ent|buildcubemaps}} console command is executed. Objects with {{ent|$envmap}} [[material]]s will use the nearest cubemap as their reflection. | ||
| | |||
| | |||
| | |||
}} | |||
{{intent}} | |||
{{note|Cubemaps will contain static props, sprites and decals, such as enemy blood and user sprays.}} | {{note|Cubemaps will contain static props, sprites and decals, such as enemy blood and user sprays.}} | ||
==Keyvalues== | ==Keyvalues== | ||
[[File:comparison_cubemapquality.jpg|thumb|Comparison of reflection quality. 1x1 is not included because it does not reflect at all.]] | |||
{{KV|Cubemap Size (cubemapsize)|choices|The resolution of each face of the cubemap. Remember that the actual number of pixels stored will be your selection times six! | |||
:*0: Default (usually 32x32, depending on the game) | |||
:*1: 1x1 | |||
:*2: 2x2 | |||
:*3: 4x4 | |||
:*4: 8x8 | |||
:*5: 16x16 | |||
:*6: 32x32 | |||
:*7: 64x64 | |||
:*8: 128x128 | |||
:*9: 256x256 | |||
:*10: 512x512 {{Not in FGD}} | |||
:*11: 1024x1024 {{Not in FGD}} | |||
:*12: 2048x2048 {{Not in FGD}} | |||
:*13: 4096x4096 {{Not in FGD}}}} | |||
{{KV|Brush faces (sides)|sidelist|An optional override for individual brush faces, forcing them to use this cubemap instead of one closest to them. To select faces, press the '''Pick''' button then click on them in the 3D view. Hold {{key|Ctrl}} to toggle a face on or off.}} | |||
==See Also== | |||
*{{ent|weapon_cubemap}} | |||
Revision as of 11:47, 23 September 2018
Template:Base point It specifies a location for which a cubemap will be generated when the buildcubemaps console command is executed. Objects with $envmap materials will use the nearest cubemap as their reflection.

Keyvalues
- Cubemap Size (cubemapsize) ([todo internal name (i)]) <choices>
- The resolution of each face of the cubemap. Remember that the actual number of pixels stored will be your selection times six!
- Brush faces (sides) ([todo internal name (i)]) <sidelist>
- An optional override for individual brush faces, forcing them to use this cubemap instead of one closest to them. To select faces, press the Pick button then click on them in the 3D view. Hold Ctrl to toggle a face on or off.