$treesway: Difference between revisions
Jump to navigation
Jump to search
m (Added a note.) |
No edit summary |
||
Line 1: | Line 1: | ||
When this parameter is added, it will make the material morph around to an env_wind entity to give it the effect that it's blowing in the wind, this effect is used for the trees you see in {{csgo}}[[Counter-Strike:_Global_Offensive|Counter-Strike: Global Offensive]] and various foliage seen in {{insurgency}}[http://store.steampowered.com/app/222880 Insurgency 2014]. | When this parameter is added, it will make the material morph around to an env_wind entity to give it the effect that it's blowing in the wind, this effect is used for the trees you see in {{csgo}}[[Counter-Strike:_Global_Offensive|Counter-Strike: Global Offensive]] and various foliage seen in {{insurgency}}[http://store.steampowered.com/app/222880 Insurgency 2014]. | ||
The effect assumes that the model is facing upwards, and the commands specify how much it should be affected by the point entity [[env_wind]] | |||
Requires <code>[[VertexLitGeneric]]</code>. | Requires <code>[[VertexLitGeneric]]</code>. | ||
Line 7: | Line 9: | ||
==Syntax== | ==Syntax== | ||
$treeSway | $treeSway "1" | ||
$treeSwayHeight "8" | |||
$treeSwayStartHeight ".5" | |||
$treeSwayRadius "1" | |||
$treeSwayStartRadius "0.0" | |||
$treeSwaySpeed "2" | |||
$treeSwayStrength ".1" | |||
$treeSwayScrumbleSpeed "3" | |||
$treeSwayScrumbleStrength ".2" | |||
$treeSwayScrumbleFrequency "20" | |||
$treeSwayFalloffExp "2" | |||
$treeSwayScrumbleFalloffExp "3" | |||
$treeSwaySpeedHighWindMultiplier ".2" | |||
$treeSwaySpeedLerpStart "1000.0" | |||
$treeSwaySpeedLerpEnd "2500.0" | |||
==Additional parameters== | |||
; <code>$treeSway <bool></code> | |||
: Turns the effect on or off. | |||
; <code>$treeSwayHeight [[Float]]</code> | |||
: The height in which the effect is applied. | |||
; <code>$treeSwayStartHeight [[Float]]</code> | |||
: The height from the origin in which the effect starts blending in. | |||
; <code>$treeSwayRadius [[Float]]</code> | |||
: The radius from the origin in which the effect is applied. | |||
; <code>$treeSwayStartRadius [[Float]]</code> | |||
: The radius from the origin in which the effect starts blending in. | |||
; <code>$treeSwaySpeed [[Float]]</code> | |||
: The speed multiplier of large movement such as the trunk. | |||
; <code>$treeSwayStrength [[Float]]</code> | |||
: The distance multiplier of large movement such as the trunk. | |||
; <code>$treeSwayFalloffExp [[Float]]</code> | |||
: The falloff of the effect on small movement such as the trunk. Higher means a more stable center. | |||
; <code>$treeSwayScrumbleSpeed [[Float]]</code> | |||
: The speed multiplier of the small movement such as the leaves. | |||
; <code>$treeSwayScrumbleStrength [[Float]]</code> | |||
: The distance multiplier of the small movement such as the leaves. | |||
; <code>$treeSwayScrumbleFrequency [[Float]]</code> | |||
: The frequency of the rippling of a sine wave in small movement such as the leaves. | |||
; <code>$treeSwayScrumbleFalloffExp [[Float]]</code> | |||
: The falloff of the effect on small movement such as the leaves. Higher means a more stable center. | |||
; <code>$treeSwaySpeedHighWindMultiplier [[Float]]</code> | |||
: Speed multiplier when [[env_wind]] triggers a gust. | |||
; <code>$treeSwaySpeedLerpStart [[Float]]</code> | |||
: Minimum wind speed in which a gust triggered by [[env_wind]] will start affecting the material. | |||
; <code>$treeSwaySpeedLerpEnd [[Float]]</code> | |||
: Minimum wind speed in which a gust triggered by [[env_wind]] will fully affect the material. | |||
[[Category:List of Shader Parameters|T]] | [[Category:List of Shader Parameters|T]] |
Revision as of 07:13, 22 April 2017
When this parameter is added, it will make the material morph around to an env_wind entity to give it the effect that it's blowing in the wind, this effect is used for the trees you see in Counter-Strike: Global Offensive and various foliage seen in
Insurgency 2014.
The effect assumes that the model is facing upwards, and the commands specify how much it should be affected by the point entity env_wind
Requires VertexLitGeneric
.
Syntax
$treeSway "1" $treeSwayHeight "8" $treeSwayStartHeight ".5" $treeSwayRadius "1" $treeSwayStartRadius "0.0" $treeSwaySpeed "2" $treeSwayStrength ".1" $treeSwayScrumbleSpeed "3" $treeSwayScrumbleStrength ".2" $treeSwayScrumbleFrequency "20" $treeSwayFalloffExp "2" $treeSwayScrumbleFalloffExp "3" $treeSwaySpeedHighWindMultiplier ".2" $treeSwaySpeedLerpStart "1000.0" $treeSwaySpeedLerpEnd "2500.0"
Additional parameters
$treeSway <bool>
- Turns the effect on or off.
$treeSwayHeight Float
- The height in which the effect is applied.
$treeSwayStartHeight Float
- The height from the origin in which the effect starts blending in.
$treeSwayRadius Float
- The radius from the origin in which the effect is applied.
$treeSwayStartRadius Float
- The radius from the origin in which the effect starts blending in.
$treeSwaySpeed Float
- The speed multiplier of large movement such as the trunk.
$treeSwayStrength Float
- The distance multiplier of large movement such as the trunk.
$treeSwayFalloffExp Float
- The falloff of the effect on small movement such as the trunk. Higher means a more stable center.
$treeSwayScrumbleSpeed Float
- The speed multiplier of the small movement such as the leaves.
$treeSwayScrumbleStrength Float
- The distance multiplier of the small movement such as the leaves.
$treeSwayScrumbleFrequency Float
- The frequency of the rippling of a sine wave in small movement such as the leaves.
$treeSwayScrumbleFalloffExp Float
- The falloff of the effect on small movement such as the leaves. Higher means a more stable center.