Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:2.01

Description

Description:Defines the rendering parameters for enableCaustics.

Syntax

Syntax:setCausticsParams [maxdist, maxdepth, sizeUp, sizeDn, interval, depthFade, granularity, brightness]
Parameters:
  • maxdist: Number - Maximum distance (in meters) at which caustics are visible (default: 200).
  • maxdepth: Number - Maximum depth (in meters) at which caustics are rendered (default: 100).
  • sizeUp: Number - Length of a caustics rendering square (at zero depth) (default: 4).
  • sizeDn: Number - Length of a caustics rendering square (at maximum rendering depth) (default: 130).
  • interval: Number - Frequency (in seconds) of texture changes (default: 0.08).
  • depthFade: Number - How fast the intensity fades with depth (as coefficient: 1.0 = linear, 2.0 = quadratic, and so on) (default: 2).
  • granularity: Number - Distance (in meters) over which two caustic textures are interpolated (at different depths) (default: 2).
  • brightness: Number - Brightness coefficient (default: 4).
Return Value:Nothing

Examples

Examples:
setCausticsParams [100,100,4,100,0.06,2,2,2]

Additional Information

See also: enableCaustics
Multiplayer:
Problems:

Notes