Light environment
< Zh
Jump to navigation
Jump to search
译者:桃李果树(百度ID)
Template:Base point 它从toolsskybox纹理投射平行定向照明以近似从太阳或月亮投射的光线。

天空盒光照

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.
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.
You can help by updating the translation.
Also, please make sure the article complies with the alternate languages guide.
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.
天空盒照明 通过每一个toolsskybox 纹理的固体进入地图。其基本属性由三个实体组合使用来控制(有些游戏是四个实体):
- light_environment指定直射日光的方向、颜色和强度,以及漫反射光的颜色和强度。
- shadow_control实体指定
light_environment
所创建的动态阴影 的方向、颜色和距离。如果没有该实体,动态阴影将会有bug且不可配置。 - env_sun在天空盒中放置一个发光的图标来表示太阳在天空中的明显位置。
- env_cascade_light给地图投射一个精细的实时阴影,其设置通常来自
light_environment
。只能用于。
要使它们有意义,确保以上每个实体在地图中只有一个,并且实体的Pitch and Yaw <角度>设置为相同的值。(Pitch相当于太阳的仰角,而Yaw则类似于指南针轴承。)
这些照明设置——方向、颜色、强度等,是以具体2D天空盒的图像而定的。天空列表 文章提供了一些Valve的天空盒的设置。worldspawn实体定义了使用的天空盒。另外请注意,如果env_fog_controller的设置与使用的特定天空盒不对应,雾气看起来会不正确。

light_environment
和env_sun
强制,但不能对shadow_control
。Pitch的强制也不能被关闭,且它的旋转是从水平方向逆时针开始的(因此竖直向下是-90°),而<角度> Pitch的旋转是顺时针的(因此竖直向下是+90°)。一个应对方法是确保你的Pitch强制只重复<角度>的值;例如,如果你的shadow_control
、light_environment
和env_sun
的<角度>是「45 -60 0」,把Pitch设置为「-45」。==See also==
键值
- Pitch ([todo internal name (i)]) <angle >
- 覆盖角度Pitch值,即使保留为0,也需要指定。与角度相反,这个Pitch的旋转是从水平方向逆时针测量的,所以90是直线上升的,而-90是直线下降的。(这只是正常Pitch的负值。)
- BrightnessHDR ([todo internal name (i)]) <color255 >
- 编译HDR照明时覆盖Brightness。默认为
-1 -1 -1 1
,这意味着“与LDR相同”。
- Template:EP2 add ([todo internal name (i)]) <浮点型 >
- 用于投射柔和阴影的太阳的角度范围。数字越高越弥漫。5是一个很好的初始值。请记住:在阴天,阴影会变得模糊,因为太阳光正在被云层扩散。尝试90作为朦胧的日子,并使用135作为阴天、雨和雾。如果你尝试夜间气氛,有时你需要高达180。你还必须关闭shadow_control实体中的alpha阴影——尝试将阴影颜色(Shadow Color)变量更改为某些值如50 50 50。
- Pitch Yaw Roll (Y Z X) (angles) <QAngle >
- 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.
额外链接
Light_environment的相关教程(俄语)
教程由Project-S创建