Enum EnumFaceCullMode
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
Types that determine how block faces should be culled. Open in GitHub
[DocumentAsJson]
public enum EnumFaceCullMode
Methods
Default = 0Culls faces if they are opaque faces adjacent to opaque faces
NeverCull = 1Never culls any faces
Merge = 2Culls all faces that are adjacent to opaque faces and faces adjacent to blocks of the same id
Callback = 7Calls method Block.ShouldMergeFace() to determine whether to cull the face or not
Collapse = 3Culls all faces that are adjacent to opaque faces and the bottom, east or south faces adjacent to blocks of the same id This causes to still leave one single face inbetween instead of 2, eliminating any z-fighting.
MergeMaterial = 4Same as Merge but checks for equal material
CollapseMaterial = 5Same as Collapse but checks for equal material
Liquid = 6Same as CollapseMaterial but also culls faces towards opaque blocks
MergeSnowLayer = 8FlushExceptTop = 9Used for blocks similar to Farmland or StonePath, which are not themselves opaque except on the base, but can cull horizontal sides if adjacent block is opaque (or the same id)
Stairs = 10Culls non-opaque faces if the same block is adjacent e.g. a wide staircase made from several Stairs blocks side-by-side (caution: in future this cull mode will not work with corner stairs shapes)