Facebook Twitter YouTube

class ShaderMarker

Defined in:  TSMarkers.h
The ShaderMarker class represents a shader warmup marker node in a world.
Definition

class ShaderMarker final : public Marker, public ListElement<ShaderMarker>

Constructor

ShaderMarker();

Description
The ShaderMarker class is used to specify a location in a world where rendering should be performed before gameplay starts for the purpose of pregenerating shaders. This helps avoid hesitations due to shaders being compiled when the camera enters a new area of a world. Multiple shader warmup markers can be placed in a world in order to cover all of the places where new lighting and fog environments would cause many shaders to be generated.
Base Classes
Marker A shader warmup marker is a specific type of marker.
ListElement<ShaderMarker> Used internally by the World Manager.