Table of Contents

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

bool

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 View

The View the reflection is based on

reflectPlane DoublePlane

A plane alongside which the view shall be reflected

clipTolerance float

How 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 View

The View the refraction is based on

refractPlane DoublePlane

A plane alongside which the view shall be refracted

clipTolerance float

How much to shift the clip plane away from the refract plane

Returns

WaterView

The WaterView representing the refraction

IsToRender(PositionableRenderable)

Checks if a PositionableRenderable is supposed to be rendered in this type of View

protected override bool IsToRender(PositionableRenderable body)

Parameters

body PositionableRenderable

The PositionableRenderable to check

Returns

bool

true if the PositionableRenderable is supposed to be rendered