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}} Это так же доступно в {{tf2}}{{Bms}}{{GMOD}}{{mapbase}}. В {{GMOD}}{{mapbase}}, это можно использовать и для {{ent|UnlitGeneric}}. | {{Shaderparam:ru|$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 8: | Line 8: | ||
{{note|This shader parameter is disabled by default in the {{as}} SDK. It can re-enabled by modding.}} | {{note|This shader parameter is disabled by default in the {{as}} SDK. It can re-enabled by modding.}} | ||
{{bug|In {{GMOD}}{{mapbase}}, using a shadow-casting [[env_projectedtexture|projected texture]] on materials with this parameter will cause flickering. As a workaround, try to keep trees away from where player flashlights can reach. {{ent|$halflambert}} may also partially fix the issue.}} | {{bug|In {{GMOD}}{{mapbase}}, using a shadow-casting [[env_projectedtexture|projected texture]] on materials with this parameter will cause flickering. As a workaround, try to keep trees away from where player flashlights can reach. {{ent|$halflambert}} may also partially fix the issue.}} | ||
: {{todo| | : {{todo:ru|Что насчёт <code>$singlepassflashlight</code> и <code>$flashlightnolambert</code>?}} | ||
==Параметры== | ==Параметры== |
Revision as of 19:31, 11 November 2021
$treesway - это параметр шейдера материала , доступный во всех играх на Template:Game name, начиная с Template:Game name для VertexLitGeneric. Это так же доступно в . В
, это можно использовать и для 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.


Параметры
$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 играх.