Class ModelDataPoolLocation
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
Description of one pool part (one chunk mesh in one LOD and one render pass)
The flags Hide, LodLevel, FrustumVisible and CullVisible are properties: while the part is in a pool they live in the pool slot arrays (PoolCullData) so culling reads them without touching this object After the part is removed from the pool the last values stay in this object
Note: this class implements no visibility rules All rules (the frustum test per mode, the LOD and view distance rule, the shadow pass threshold) live in FrustumCulling and the batched version lives in PoolCullData There is no separate per object version to keep in sync Open in GitHub
public class ModelDataPoolLocation
- Inheritance
-
ModelDataPoolLocation
- Inherited Members
- Extension Methods
Fields
FrustumCullSphere
The sphere used for culling
public Sphere FrustumCullSphere
Field Value
IndicesEnd
Where the mesh indices end
public int IndicesEnd
Field Value
IndicesStart
Where the mesh indices start
public int IndicesStart
Field Value
PoolId
ID of the pool that owns this part
public int PoolId
Field Value
TransitionCounter
For models that move, such as a door
public int TransitionCounter
Field Value
VerticesEnd
Where the vertices end
public int VerticesEnd
Field Value
VerticesStart
Where the vertices start
public int VerticesStart
Field Value
VisibleBufIndex
Which of the two visibility buffers to read this frame (0 or 1)
public static int VisibleBufIndex
Field Value
Properties
CullVisible
Visibility set by the chunk culler This is the shared Bools object of the chunk itself so a change is visible to every slot of the chunk at once
public Bools CullVisible { get; set; }
Property Value
FrustumVisible
Whether the part was visible in the last CullNormal pass
public bool FrustumVisible { get; set; }
Property Value
Hide
Hidden parts are not drawn
public bool Hide { get; set; }
Property Value
LodLevel
Mesh detail level: 0 is the most detailed and 3 is the coarsest
public int LodLevel { get; set; }