这篇条目有关 Source引擎。如需详情,点击这里。

light_environment

From Valve Developer Community
< Zh
Jump to navigation Jump to search
English (en)Русский (ru)Türkçe (tr)中文 (zh)Translate (Translate)
Info content.png
This translated page needs to be updated.
You can help by updating the translation.
Also, please make sure the article complies with the alternate languages guide.(en)
This notice is put here by LanguageBar template and if you want to remove it after updating the translation you can do so on this page.


Light environment.png

light_environment是一个点实体(en),可在所有的 起源 起源 游戏中使用。 它从toolsskybox纹理投射平行定向照明以模拟从太阳或月亮投射的光线。

Note.png注意:该实体的属性适用于整个地图。如果所有light_environment实例具有相同的信息,则对具有天空盒toolsskybox纹理的区域使用多于1个实体不会出现错误。尽管多于1个是毫无意义的。
Tip.png提示:env_sun(en)shadow_control(en)一起使用。

天空盒光照

主条目:  skybox lighting

键值

Pitch (pitch) <angle(en)>
覆盖角度pitch值,即使保留为0也会覆盖,因此需要指定。与角度相反,这个pitch的旋转是从水平方向时针测量的,所以90是竖直向上的,而-90是竖直向下的。(它只是正常pitch的相反数。)
亮度(_light) ([todo internal name (i)]) <color255(en)>
直射阳光的颜色和亮度。
环境光(_ambient) ([todo internal name (i)]) <color255(en)>
漫反射光的颜色和亮度。
HDR亮度(_lightHDR) ([todo internal name (i)]) <color255(en)>
编译HDR照明时覆盖亮度。默认为-1 -1 -1 1,这意味着「与LDR相同」。
HDR亮度比(_lightscaleHDR) ([todo internal name (i)]) <浮点型(en)>
用于编辑HDR时缩小直射光的量。
HDR环境光(_ambientHDR) ([todo internal name (i)]) <color255(en)>
编译HDR照明时覆盖环境光。默认为-1 -1 -1 1,这意味着「与LDR相同」。
HDR环境光比(_AmbientScaleHDR) <浮点型(en)>
用于编译HDR时缩放环境光的量。
太阳扩散角度(SunSpreadAngle) ([todo internal name (i)]) <浮点型(en)> (存在于自 半衰期2:第二章 以来)
用于投射柔和阴影的太阳的角度范围。数字越高越弥漫。5是一个很好的初始值。请记住:在阴天,阴影会变得模糊,因为太阳光会被云层扩散。对于雾霾天气,尝试90,对于阴天、雨天和雾天,使用135。如果你尝试夜间气氛,有时你需要高达180。你还必须关闭shadow_control(en)实体中的阿尔法阴影——尝试将阴影颜色(Shadow Color)变量调到如50 50 50这样的值。
Pitch Yaw Roll (Y Z X) (angles) <QAngle(en)>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

外部链接