Ru/$treesway: Difference between revisions
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}} | {{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>?}} | ||
== | ==Параметры== | ||
{{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| | {{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]] | ||
== | == Смотрите так же == | ||
https://gamebanana.com/tuts/12924 - | https://gamebanana.com/tuts/12924 - Как достигнуть похожий эффект без <code>$treeSway</code>, во всех source engine играх. |
Revision as of 10:56, 30 October 2021
Template:Shaderparam Это так же доступно в . В
, это можно использовать и для 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.

$treesway
will not sway materials which use $bumpmap.


- Нужно сделать: 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 играх.