Ru/$treesway: Difference between revisions

From Valve Developer Community
< Ru
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{lang|$treeSway}}
{{lang|$treeSway}}
[[File:de_lake_treesway.gif|thumb|Дерево с treesway на de_lake в CS:GO (нажмите на изображение что бы воспроизвести gif).]]  
[[File:de_lake_treesway.gif|thumb|Дерево с treesway на de_lake в CS:GO (нажмите на изображение что бы воспроизвести gif).]]  
{{Shaderparam|$treesway|since=Left 4 Dead|shader1=VertexLitGeneric}} It is also available in {{tf2}}{{Bms}}{{GMOD}}{{mapbase}}. In {{GMOD}}{{mapbase}}, it can also be used for {{ent|UnlitGeneric}}.
{{Shaderparam|$treesway|since=Left 4 Dead|shader1=VertexLitGeneric}} Это так же доступно в {{tf2}}{{Bms}}{{GMOD}}{{mapbase}}. В {{GMOD}}{{mapbase}}, это можно использовать и для {{ent|UnlitGeneric}}.


<code>$treesway</code> morphs a material around using the parameters of an {{ent|env_wind}} entity to give the appearance of tree leaves and foilage blowing in the wind. The subparameters of <code>$treesway</code> determine how much the <code>env_wind</code> entity should affect the morphing, and all of them (except <code>$treeswaystatic</code>) must be specified in order for the effect to work properly. This shader parameter assumes any model using it is facing upwards.
<code>$treesway</code> morphs a material around using the parameters of an {{ent|env_wind}} entity to give the appearance of tree leaves and foilage blowing in the wind. The subparameters of <code>$treesway</code> determine how much the <code>env_wind</code> entity should affect the morphing, and all of them (except <code>$treeswaystatic</code>) must be specified in order for the effect to work properly. This shader parameter assumes any model using it is facing upwards.
Line 10: Line 10:
: {{todo|What about <code>$singlepassflashlight</code> and <code>$flashlightnolambert</code>?}}
: {{todo|What about <code>$singlepassflashlight</code> and <code>$flashlightnolambert</code>?}}


==Parameters==
==Параметры==


{{MatParam|$treesway|int|What option to use for the tree swaying effect.
{{MatParam|$treesway|int|What option to use for the tree swaying effect.
Line 16: Line 16:
:*1: "Classic" tree sway.
:*1: "Classic" tree sway.
:*2: Radial tree sway effect, intended for use on rectangular sheets of plastic/tarp attached at four corners. It inverts the sway scale radius to be 1 at (0,0,0) in model space and to fall off radially towards the edges of the model. {{note|Models using <code>$treesway 2</code> are expected to be built lying in the X Y plane in model space, with their center at the origin.}}}}
:*2: Radial tree sway effect, intended for use on rectangular sheets of plastic/tarp attached at four corners. It inverts the sway scale radius to be 1 at (0,0,0) in model space and to fall off radially towards the edges of the model. {{note|Models using <code>$treesway 2</code> are expected to be built lying in the X Y plane in model space, with their center at the origin.}}}}
{{MatParam|$treeswayheight|float|The starting height in Hammer units where the effect should start being fully applied. Default 1000.}}
{{MatParam|$treeswayheight|float|Начальная высота в юнитах <code>Hammer Editor'ра</code> с которой эффект начинает работать на полную. По умолчанию: 1000.}}  
{{MatParam|$treeswaystartheight|float|The height from the model's origin in which the effect starts blending in. Default 0.2.}}
{{MatParam|$treeswaystartheight|float|The height from the model's origin in which the effect starts blending in. Default 0.2.}}
{{MatParam|$treeswayradius|float|The radius from the model's origin in Hammer units in where the effect should start being fully applied. Default 300.}}
{{MatParam|$treeswayradius|float|The radius from the model's origin in Hammer units in where the effect should start being fully applied. Default 300.}}
Line 35: Line 35:
[[Category:List of Shader Parameters|T]]
[[Category:List of Shader Parameters|T]]


== See Also ==
== Смотрите так же ==
https://gamebanana.com/tuts/12924 - How to achieve a similar effect without <code>$treeSway</code>, on all source engine games
https://gamebanana.com/tuts/12924 - Как достигнуть похожий эффект без <code>$treeSway</code>, во всех source engine играх.

Revision as of 10:56, 30 October 2021

English (en)Русский (ru)Translate (Translate)
Дерево с treesway на de_lake в CS:GO (нажмите на изображение что бы воспроизвести gif).

Template:Shaderparam Это так же доступно в Team Fortress 2Black MesaGarry's ModMapbase. В Garry's ModMapbase, это можно использовать и для UnlitGeneric.

$treesway morphs a material around using the parameters of an env_wind entity to give the appearance of tree leaves and foilage blowing in the wind. The subparameters of $treesway determine how much the env_wind entity should affect the morphing, and all of them (except $treeswaystatic) must be specified in order for the effect to work properly. This shader parameter assumes any model using it is facing upwards.

Warning.pngПредупреждение:Due to the way bumped lighting is calculated, $treesway will not sway materials which use $bumpmap.
Note.pngПримечание:This shader parameter is disabled by default in the Alien Swarm SDK. It can re-enabled by modding.
Icon-Bug.pngБаг:In Garry's ModMapbase, using a shadow-casting projected texture on materials with this parameter will cause flickering. As a workaround, try to keep trees away from where player flashlights can reach. $halflambert may also partially fix the issue.  [нужно проверить в ?]
Нужно сделать: What about $singlepassflashlight and $flashlightnolambert?

Параметры

$treesway $treeswayheight $treeswaystartheight $treeswayradius $treeswaystartradius $treeswayspeed $treeswaystrength $treeswayscrumblespeed $treeswayscrumblestrength $treeswayscrumblefrequency $treeswayfalloffexp $treeswayscrumblefalloffexp $treeswayspeedhighwindmultipler $treeswayspeedlerpstart $treeswayspeedlerpend $treeswaystatic $treeswaystaticvalues

Смотрите так же

https://gamebanana.com/tuts/12924 - Как достигнуть похожий эффект без $treeSway, во всех source engine играх.