Env cubemap

From Valve Developer Community
Revision as of 11:56, 23 September 2018 by Pinsplash (talk | contribs) (wording fix)
Jump to navigation Jump to search
English (en)Deutsch (de)Français (fr)한국어 (ko)Português do Brasil (pt-br)Русский (ru)中文 (zh)中文(臺灣) (zh-tw)Translate (Translate)
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.

Template:Base point It specifies a location for which a cubemap will be generated when the buildcubemaps console command is executed. Materials with $envmap will use the nearest cubemap as their reflection.

Template:Intent

Note.pngNote:Cubemaps will contain static props, sprites and decals, such as enemy blood and user sprays.

Keyvalues

Comparison of reflection quality. 1x1 is not included because it does not reflect at all.
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!
  • 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 !FGD
  • 11: 1024x1024 !FGD
  • 12: 2048x2048 !FGD
  • 13: 4096x4096 !FGD
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.

See Also