Scripting/Client/Functions/ToggleWaterShader
(v0.4.3) Realistic water: a real-time planar reflection of the scene on the sea (buildings, sky and cars mirrored in the water), distorted by animated waves, with a fresnel effect (stronger at a shallow viewing angle) and a fade with distance. true switches it on, false off; it is off by default and applies to every sea the game draws, Vice City and the other server maps included. Costs frame rate (the scene is drawn a second time into a small render target). Tunable with an optional lu_watershader.ini next to gta3.exe, section [Reflection]: Strength, FresnelMin, FresnelPower, WaveStrength, WaveScale, WaveSpeed, ReflectDistance, ReflectScale (0.25 - 1, size of the reflection), ReflectDrawDistance (0 = no limit), GhostFrames, SkySpan, SkyTopColor, FadeStart. Players can also type /watershader [on|off]. PC only: on Android the function exists but does nothing.
Syntax
ToggleWaterShader(bool)Arguments
- bool value
Example
function onScriptLoad()
{
ToggleWaterShader( true );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- BindKey
- UnbindKey
- GetKeyStatus
- ShowMouseCursor
- GetMouseCursorPos
- SetMouseCursorPos
- SetDriveBy
- ToggleCameraMovement
- ToggleMouseMovement
- ToggleDynamicShadows
- ToggleBulletHoles
- SetCameraFov
Section: Input