TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

enum ModelFlags in Tinman.AddOns.Models

Enumeration of behaviour flags for IModel objects.

[Flags]
enum ModelFlags  

Items

None = 0
Lighting = 0x01

Perform lighting on this model.

FrontFaces = 0x02

Front-facing triangles are visible.

BackFaces = 0x04

Back-facing triangles are visible.

Transparent = 0x08

The model is transparent.

VertexColorIsAlbedo = 0x10

The color channels (compressed sRGB) of the vertex colors (see Texture) shall be used to modulate the albedo.

VertexAlphaIsOcclusion = 0x20

The alpha channel of the vertex colors (see Texture) stores a linear ambient occlusion term, instead of transparency information.

VertexColorIsWind = 0x40

The color channels (linear) of the vertex colors (see Texture) are used to encode wind animation coefficients.

Remarks:

The red channel encodes the relative wind influence in the range [0..1].

The green channel encodes a pseudo-random value which is used to offset the wind animation phase in order to reduce uniformity.

The blue channel encodes a coefficient in the range [0..1] which chooses the pivot point to use for applying the wind animation position offset:
0: the model origin (0,0,0)
1: the projection of the vertex onto the model ground plane.

Group = 0x80

The model represents a group of models (e.g. variations / LODs).