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
baseViewViewThe View the reflection is based on
reflectPlaneDoublePlaneA plane alongside which the view shall be reflected
clipTolerancefloatHow 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
baseViewViewThe View the refraction is based on
refractPlaneDoublePlaneA plane alongside which the view shall be refracted
clipTolerancefloatHow 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
bodyPositionableRenderableThe PositionableRenderable to check
Returns
- bool
trueif the PositionableRenderable is supposed to be rendered