Ru/Shadow control: Difference between revisions
< Ru
Jump to navigation
Jump to search
1416006136 (talk | contribs) mNo edit summary |
No edit summary |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{LanguageBar}} | |||
Он определяет направление, цвет и расстояние затухания | {{this is a|point entity|sprite=1|name=shadow_control}} | ||
{{translate}} | |||
Он определяет направление, цвет и расстояние затухания {{L|Dynamic Shadows|Динамические тени}}, создаваемых {{ent|light_environment}} для всей карты. | |||
{{Note|Начиная с {{l4d|4}}, направление тени может определяться локальным освещением вместо глобального значения. Подробнее см. ниже.}} | {{Note|Начиная с {{l4d|4}}, направление тени может определяться локальным освещением вместо глобального значения. Подробнее см. ниже.}} | ||
{{ | {{Map properties note}} | ||
{{clr}} | {{clr}} | ||
{{Confirm|Obsolete in {{csgo|4}}? Possibly replaced by {{ent | {{Confirm|Obsolete in {{csgo|4}}? Possibly replaced by {{ent|env_cascade_light}}.}} | ||
== | == Ключи-параметры == | ||
{{KV | {{KV Targetname}} | ||
{{KV | {{KV|Shadow Color|intn=color|color255|Это цвет теней.}} | ||
: {{Tip|Shortening this distance can be used to approximate the effects of diffuse | {{KV|Maximum Distance|intn=distance|float|Это цвет теней.aЭто максимальное расстояние, на которое может отбрасываться тень, в дюймах. | ||
{{KV | : {{Tip|Shortening this distance can be used to approximate the effects of diffuse {{L|lighting}}.}}}} | ||
{{KV | {{KV|All Shadows Disabled|intn=disableallshadows|boolean|Disable shadows entirely.}} | ||
: {{Note|This keyvalue may not be available in some | {{KV|Enable Local Light Shadows|intn=enableshadowsfromlocallights|boolean|Enable shadow direction to be calculated on a per-entity basis and to be dictated by the light closest to the entity. | ||
: {{codenote:ru|Существует пользовательская версия этой функции, которая может работать на предыдущих версиях Source. | : {{Note|This keyvalue may not be available in some {{L|FGD}}s.}} | ||
: {{codenote:ru|Существует пользовательская версия этой функции, которая может работать на предыдущих версиях Source. {{L|Dynamic RTT shadow angles in Source 2007|Нажмите здесь}} для получения дополнительной информации.}}|since={{l4d}}|also={{GMOD}}{{mapbase}}}} | |||
: {{Tip|Pitch is the sun's angle of elevation from the ground, and yaw is its compass bearing.}} | : {{Tip|Pitch is the sun's angle of elevation from the ground, and yaw is its compass bearing.}} | ||
== | == Входы == | ||
{{ | {{I|color|Set the shadow color.|param=color255}} | ||
{{ | {{I|direction|Set the shadow direction.|param=vector}} | ||
{{ | {{I|SetDistance|Set the maximum shadow cast distance.|param=float}} | ||
{{ | {{I|SetAngles|Set the shadow direction.|param=string}} | ||
{{ | {{I|SetShadowsDisabled|Set shadows disabled state.|param=integer}} | ||
{{ | {{I|SetShadowsFromLocalLightsEnabled|Set local light shadows enabled state. | ||
: {{Note|This input may not be available in some | : {{Note|This input may not be available in some {{L|FGD}}s.}}|param=integer|since={{l4d}}|also={{GMOD}}{{mapbase}}}} | ||
== | == Смотри также == | ||
{{ | * {{L|Lighting}} | ||
* {{ent|light_environment}} | * {{ent|light_environment}} | ||
* {{ent|env_cascade_light}} | * {{ent|env_cascade_light}} | ||
{{ACategory|Lighting}} |
Latest revision as of 22:02, 18 March 2025

shadow_control
- это точечная энтити , доступно для всех игр на движке Source.

This page needs to be translated.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.
Он определяет направление, цвет и расстояние затухания Динамические тени , создаваемых light_environment для всей карты.





Ключи-параметры
- Name (targetname) <объект источник >
- Имя объекта, по которому другие объекты могут ссылаться на этот объект, через Входы/Выходы или другие ключ-параметры (например
parentname
илиtarget
).
Также отображаются на 2D-видах в Hammer и Отчёте об объектах (Entity Report) .См. также: Основные ключ-параметры, входы и выходы доступные для всех объектов
- Shadow Color (color) <цвет КЗС >
- Это цвет теней.
- Maximum Distance (distance) <число с плавающей запятой >
- Это цвет теней.aЭто максимальное расстояние, на которое может отбрасываться тень, в дюймах.
Совет:Shortening this distance can be used to approximate the effects of diffuse lighting .
- All Shadows Disabled (disableallshadows) <булева переменная >
- Disable shadows entirely.
- Enable Local Light Shadows (enableshadowsfromlocallights) <булева переменная > (Во всех играх начиная с
) (также в
)
- Enable shadow direction to be calculated on a per-entity basis and to be dictated by the light closest to the entity.
Примечание:This keyvalue may not be available in some FGD s.
Код: Существует пользовательская версия этой функции, которая может работать на предыдущих версиях Source. Нажмите здесь для получения дополнительной информации.
Совет:Pitch is the sun's angle of elevation from the ground, and yaw is its compass bearing.
Входы
- color <цвет КЗС >
- Set the shadow color.
- direction <вектор данных >
- Set the shadow direction.
- SetDistance <число с плавающей запятой >
- Set the maximum shadow cast distance.
- SetAngles <строка >
- Set the shadow direction.
- SetShadowsDisabled <целое число >
- Set shadows disabled state.
- SetShadowsFromLocalLightsEnabled <целое число > (Во всех играх начиная с
) (также в
)
- Set local light shadows enabled state.
Примечание:This input may not be available in some FGD s.