Class WaterView
- Namespace
- OmegaEngine.Graphics
- Assembly
- OmegaEngine.dll
A SupportView for rendering Water refractions or reflections
public sealed class WaterView : SupportView, IDisposable
- Inheritance
-
WaterView
- Implements
- Inherited Members
- Extension Methods
Properties
Reflection
True if this is a OmegaEngine.Graphics.Renderables.WaterViewSource.ReflectedView, false
if this is a OmegaEngine.Graphics.Renderables.WaterViewSource.RefractedView
public bool Reflection { get; }
Property Value
Methods
CreateReflection(View, DoublePlane, float)
Creates a reflection of a View and adds it to ChildViews
public static WaterView CreateReflection(View baseView, DoublePlane reflectPlane, float clipTolerance)
Parameters
baseView
ViewThe View the reflection is based on
reflectPlane
DoublePlaneA plane alongside which the view shall be reflected
clipTolerance
floatHow much to shift the clip plane away from the reflect plane
Returns
- WaterView
The new view
CreateRefraction(View, DoublePlane, float)
Creates a refraction of a View and adds it to ChildViews
public static WaterView CreateRefraction(View baseView, DoublePlane refractPlane, float clipTolerance)
Parameters
baseView
ViewThe View the refraction is based on
refractPlane
DoublePlaneA plane alongside which the view shall be refracted
clipTolerance
floatHow much to shift the clip plane away from the refract plane
Returns
IsToRender(PositionableRenderable)
Checks if a PositionableRenderable is supposed to be rendered in this type of View
protected override bool IsToRender(PositionableRenderable body)
Parameters
body
PositionableRenderableThe PositionableRenderable to check
Returns
- bool
true
if the PositionableRenderable is supposed to be rendered