Skybox lighting

From Valve Developer Community
< Tr
Revision as of 07:59, 7 November 2021 by LuHuLu (talk | contribs)
Jump to navigation Jump to search
English (en)Español (es)Русский (ru)Türkçe (tr)中文 (zh)Translate (Translate)
Toolsskybox.gif

Skybox Lighting her toolsskybox dokusuna sahip brush'tan haritaya girerek, ay/güneş ışığını ve dağınık gölgeleri taklit eder. 3 ayrı nokta varlığı ile kontrol edilir (bazı oyunlarda 4):

  • light_environment direkt güneş ışığının rengini, yönünü ve yoğunluğunu; dağınık güneş ışığının ise rengini ve yoğunluğunu belirler.
  • shadow_control, light_environment tarafından yaratılan dynamic shadows'ların yönünü, rengini ve dağılma uzaklığını belirler . Bu varlık olmadan dinamik gölgeler bug'lı ve kontrolsüz olacaktır.
  • env_sun Güneşi taklit etme amacıyla gökyüzüne parlak bir obje yerleştirir.
  • env_cascade_light genellikle light_environment varlığının özelliklerini kopyalayarak sert, gerçek-zamanlı gölgeler yaratır. (only in Counter-Strike: Global OffensiveInsurgencyBlack Mesa)

Özetle, bu objelerden hepsini haritanıza koyduğunuzdan, ve Pitch and Yaw <angles> değerlerinin hepsinde aynı olduğundan emin olun. (Pitch Güneş'in yerden yüksekliği, ve Yaw pusuladaki yönüdür.)

These lighting settings - direction, color, brightness, etc are fairly specific to the actual image used for the 2D skybox. The Sky List article suggests some settings for official game skyboxes. The worldspawn entity defines which skybox to use. Also note that fog will look wrong if env_fog_controller's settings don't correspond to the particular skybox in use.

Note.pngNot:Pitch can be overriden for light_environment and env_sun, but not shadow_control. The Pitch override also cannot be switched off and its rotation is measured counter-clockwise from the horizontal (so straight down is -90°) whereas the <angles> Pitch's rotation is clockwise (so straight down is +90°). The workaround for this is to make sure your Pitch override merely repeats the <angles> value; for example, if your shadow_control, light_environment and env_sun <angles> are "45 -60 0", set the Pitch override to "-45".