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}}
{{finishtranslation:ru}}
[[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:ru|$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}}.

Revision as of 11:40, 23 November 2021

English (en)Русский (ru)Translate (Translate)

Template:Finishtranslation:ru

Дерево с treesway на de_lake в CS:GO (нажмите на изображение что бы воспроизвести gif).

$treesway - это параметр шейдера материала , доступный во всех играх на Template:Game name, начиная с Template:Game name для VertexLitGeneric. Это так же доступно в 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.  [нужно проверить в ?]
Template:Todo:ru

Параметры

$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 играх.