ScreenVisibleCheck

Description

sealed class Tinman.Terrain.Visibility.ScreenVisibleCheck

The ScreenVisibleCheck is the default implementation of the IVisibleCheck interface for screen-space visible checks.

Use this class for view-dependent rendering.

This visible check contains all components of DefaultVisibleCheck.

The following list shows the additional components of this visible check:

The following vertex data semantics are used by this class:

Public / Constructors

Screen​Visible​Check


public constructor ScreenVisibleCheck → (3)

cameraInfo opt : CameraInfo = null

The terrain-space camera position. If null, a new instance of CameraInfo will be used.

viewport opt : Viewport = null

The projection viewport. If null, a new instance of Viewport will be used.

maxSectorSize opt : float32 = 128

[>0]
Maximum mesh sector in screen-space.

Creates a new instance of ScreenVisibleCheck.

Public / Attributes

Backface​Angle


public attribute BackfaceAngle → (get,set)

value : float64

[0..90]
The maximum backfacing angle, in degrees.

Maximum backfacing angle to allow before culling vertices, in degrees.

Setting this to 90° will disable backface culling.

Defaults to .

See also

Semantic.Normal

Fade​Light


public attribute FadeLight → (get,set)

value : Fade

The fade range.

Specifies the camera distance fade range for the light metric.

Defaults to Fade.AlwaysOne, i.e. the light metric never fades out.

Fade​Material


public attribute FadeMaterial → (get,set)

value : Fade

The fade range.

Specifies the camera distance fade range for material tokens.

Defaults to Fade.AlwaysOne, i.e. material tokens never fade out.

Fade​Texture


public attribute FadeTexture → (get,set)

value : Fade

The fade range.

Specifies the camera distance fade range for texture colors.

Defaults to Fade.AlwaysOne, i.e. texture colors never fade out.

Has​Backface​Angle


public attribute HasBackfaceAngle → (get)

value : bool

true if BackfaceAngle is available, false if not.

Is the backfacing angle metric available?

Has​Light​Scale


public attribute HasLightScale → (get)

value : bool

true if LightScale is available, false if not.

Is the lighting metric available?

Light​Direction


public attribute LightDirection → (get,set)

value : Vec3D

The light direction vector or Vec3D.Zero to disable the light metric.

Light direction vector of prominent light source in the scene.

Defaults to Vec3D.Zero.

Light​Scale


public attribute LightScale → (get,set)

value : float64

[>=0]
The light metric scale factor or 0 to disable the light metric.

Scale factor for the light metric.

Defaults to 0.

Max​Sector​Size


public attribute MaxSectorSize → (get,set)

value : float64

[>=0]
Maximum sector size, in screen-space.

Maximum sector size, in screen-space.

This value is the square root of the approximated pixel area of the mesh sector on the screen.

The default value is 128.0f pixels.