Skip to content

class Visual (client-side)

Available since version: 0.3.6

This class represents visual class.

Properties

Visual& nextLODVisual

Available since version: 0.3.6.0

Represents the next level of detail visual.


Visual& prevLODVisual

Available since version: 0.3.6.0

Represents the previous level of detail visual.


float lodFarDistance

Available since version: 0.3.6.0

Represents the level of detail far distance.


float lodNearFadeOutDistance

Available since version: 0.3.6.0

Represents the level of detail fade out distance.


string name (read-only)

Available since version: 0.3.6.0

Represents the name of the visual model, e.g SKULL.3DS.


int renderSortKey (read-only)

Available since version: 0.3.6.0

Represents render sort key.


int canTraceRay (read-only)

Available since version: 0.3.6.0

Represents true if visual can perform traceRay, otherwise false.


bool alphaTestingEnabled

Available since version: 0.3.6.0

Represents true if alpha testing is enabled, otherwise false.


Methods

addNextLODVisual

Available since version: 0.3.6.0

This method will add the next LOD visual.

void addNextLODVisual(Visual& visual)

Parameters:

  • Visual& visual: the next LOD visual to add to the list.

addEndLODVisual

Available since version: 0.3.6.0

This method will add the LOD visual and mark it as the last one.

void addEndLODVisual(Visual& visual)

Parameters:

  • Visual& visual: the last LOD visual to add to the list.

static load

Available since version: 0.3.6.0

This method loads the given visual, e.g: SKULL.3DS.

void load(string name)

Parameters:

  • string name: the model name to be used as visual.

Callbacks

No callbacks.