Zh/Light environment: Difference between revisions
< Zh
Jump to navigation
Jump to search
(Created page with "{{otherlang2 |title=Light_environment |en = Light_environment |ru = Light_environment:ru }} 译者:桃李果树(百度ID) {{注意|此翻译仅供参考。本译文是...") |
No edit summary |
||
(13 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
| | {{tabs|main=source|goldsrc=1|source=1|source2=1|Light environment}} | ||
| | {{this is a|point entity|name=light_environment|sprite=1}} 它从[[Tool textures#Sky(boxes) and fog|toolsskybox]]纹理投射平行定向照明以模拟从太阳或月亮投射的光线。 | ||
| | {{note|该实体的属性适用于整个地图。'''如果所有light_environment实例具有相同的信息''',则对具有天空盒[[Tool textures#Sky(boxes) and fog|toolsskybox]]纹理的区域使用多于1个实体不会出现错误。尽管多于1个是毫无意义的。}} | ||
{{tip|与{{L|Env_sun|env_sun}}和{{L|Shadow control|shadow_control}}一起使用。}} | |||
{{ | |||
{{ | |||
{{ | |||
== 天空盒光照 == | == 天空盒光照 == | ||
{{ | {{Main|skybox lighting}} | ||
==键值== | == 键值 == | ||
{{KV|Pitch|angle| | {{KV|Pitch|intn=pitch|angle|覆盖角度pitch值,即使保留为''0''也会覆盖,因此''需要''指定。与角度相反,这个pitch的旋转是从水平方向''逆''时针测量的,所以''90''是竖直向上的,而''-90''是竖直向下的。(它只是正常pitch的相反数。)}} | ||
{{KV| | {{KV|亮度(_light)|color|直射阳光的颜色和亮度。}} | ||
{{KV| | {{KV|环境光(_ambient)|color|漫反射光的颜色和亮度。}} | ||
{{KV| | {{KV|HDR亮度(_lightHDR)|color|编译HDR照明时覆盖''亮度''。默认为<code>-1 -1 -1 1</code>,这意味着「与LDR相同」。}} | ||
{{KV| | {{KV|HDR亮度比(_lightscaleHDR)|float|用于编辑HDR时缩小直射光的量。}} | ||
{{KV| | {{KV|HDR环境光(_ambientHDR)|color|编译HDR照明时覆盖''环境光''。默认为<code>-1 -1 -1 1</code>,这意味着「与LDR相同」。}} | ||
{{KV| | {{KV:zh-cn|HDR环境光比(_AmbientScaleHDR)|float|用于编译HDR时缩放环境光的量。}} | ||
{{KV|{{ | {{KV|太阳扩散角度(SunSpreadAngle)|float|用于投射柔和阴影的太阳的角度范围。数字越高越弥漫。5是一个很好的初始值。请记住:在阴天,阴影会变得模糊,因为太阳光会被云层扩散。对于雾霾天气,尝试90,对于阴天、雨天和雾天,使用135。如果你尝试夜间气氛,有时你需要高达180。你还必须关闭{{L|Shadow control|shadow_control}}实体中的阿尔法阴影——尝试将阴影颜色(Shadow Color)变量调到如50 50 50这样的值。|since=EP2}} | ||
{{KV Angles}} | {{KV Angles}} | ||
== | == 外部链接 == | ||
* [http://www.nodraw.net/2011/01/sunspreadangle Nodraw.net - brief explanation with screenshots of various sunspreadangle values] | * [http://www.nodraw.net/2011/01/sunspreadangle Nodraw.net - brief explanation with screenshots of various sunspreadangle values] | ||
* [https://www.youtube.com/watch?v=roUHQk8SE-s light_enviroment的描述(俄语)] | |||
* [https://www.youtube.com/watch?v=2H-ZtuoyK04 env_sun的描述(俄语)] | |||
* [https://www.youtube.com/watch?v=WcGIrc0nWnw env_Sun + light_Environment(俄语)] | |||
{{ACategory|Lighting}} | |||
Latest revision as of 11:23, 12 July 2024

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.

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


天空盒光照
主条目: skybox lighting
键值
- Pitch (pitch) <angle >
- 覆盖角度pitch值,即使保留为0也会覆盖,因此需要指定。与角度相反,这个pitch的旋转是从水平方向逆时针测量的,所以90是竖直向上的,而-90是竖直向下的。(它只是正常pitch的相反数。)
- HDR环境光(_ambientHDR) ([todo internal name (i)]) <color255 >
- 编译HDR照明时覆盖环境光。默认为
-1 -1 -1 1
,这意味着「与LDR相同」。
- HDR环境光比(_AmbientScaleHDR) <浮点型 >
- 用于编译HDR时缩放环境光的量。
- 太阳扩散角度(SunSpreadAngle) ([todo internal name (i)]) <浮点型 > (存在于自
以来)
- 用于投射柔和阴影的太阳的角度范围。数字越高越弥漫。5是一个很好的初始值。请记住:在阴天,阴影会变得模糊,因为太阳光会被云层扩散。对于雾霾天气,尝试90,对于阴天、雨天和雾天,使用135。如果你尝试夜间气氛,有时你需要高达180。你还必须关闭shadow_control 实体中的阿尔法阴影——尝试将阴影颜色(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.