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
Properties
Size
The size of the water plane
public SizeF Size { get; }
Property Value
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
ViewThe original view to reflect
clipTolerance
floatHow 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