Table of Contents

Class Water

Namespace
OmegaEngine.Graphics.Renderables
Assembly
OmegaEngine.dll

Displays a water plane with reflections and refraction

public class Water : Model, IDisposable, IPositionable
Inheritance
Water
Implements
Inherited Members
Extension Methods

Constructors

Water(Engine, SizeF)

Creates a new water plane.

public Water(Engine engine, SizeF size)

Parameters

engine Engine

The Engine to use for rendering.

size SizeF

The size of the water plane.

Properties

Size

The size of the water plane

public SizeF Size { get; }

Property Value

SizeF

Methods

OnDispose()

Hook that is called when the object needs to dispose its internal resources.

protected override void OnDispose()

SetupChildViews(View, float)

Creates views as reflection and refraction sources - Call after setting position!

public void SetupChildViews(View view, float clipTolerance = 2)

Parameters

view View

The original view to reflect

clipTolerance float

How far to shift the clip plane along its normal vector to reduce graphical glitches at corners

Remarks

This method may be called only once on an instance