Skip to content

Component_UnderOceanMarkDrawer

XiaGu edited this page Apr 17, 2019 · 7 revisions

UnderOceanMarkDrawer

UnderOceanMarkDrawer is used with MeshRenderer, MeshFilter, UnderOceanEffectOnly Material. Is the key component to achieve underwater effects.

The role is to mark the area that need to be render as a under water effect.

Note : This object is generally not render by a refraction camera and refraction camera.


UnderOceanMarkDrawer

Property Function
Target The target to follow, if it is empty, means not to follow.
MinOffset Minimum offset from sea level.
MaxOffset Maximum offset from sea level.
WaveHeight Sea level offset.
MarkMaterial Material using the "LowpolyOcean/MarkUnderOcean" shader.

Description

Adjust component position according to camera position relative to sea level.

Blue line : sea level.

Example1 :

Example1

Example2 :

Example1

Image

1

2

Clone this wiki locally