UnderwaterRenderer#

Class in WaveHarmonic.Crest, WaveHarmonic.Crest

Renders the underwater effect.

Members#

Properties#

AllCameras

Whether to execute for all cameras.

CopyWaterMaterialParametersEachFrame

Copying parameters each frame ensures underwater appearance stays consistent with the water surface.

CullLimit

Proportion of visibility below which the water surface will be culled when underwater.

Enabled

Whether the underwater effect is enabled.

AffectsEnvironmentalLighting

Provides out-scattering based on the camera’s underwater depth.

EnvironmentalLightingWeight

How much this effect applies.

FarPlaneMultiplier

Adjusts the far plane for horizon line calculation. Helps with horizon line issue.

Layer

Any camera or probe with this layer in its culling mask will render underwater.

Material

The underwater material. The water surface material is copied into this material.