Interface IDhApiCullingFrustum
- All Superinterfaces:
IBindable
,IDhApiOverrideable
- All Known Subinterfaces:
IDhApiShadowCullingFrustum
Used to determine if a LOD should be rendered or is outside the
user's field of view.
- Since:
- API 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
intersects
(int lodBlockPosMinX, int lodBlockPosMinZ, int lodBlockWidth, int lodDetailLevel) returns true if the LOD bounds intersect this frustumvoid
update
(int worldMinBlockY, int worldMaxBlockY, DhApiMat4f worldViewProjection) Called before a render pass is done.Methods inherited from interface com.seibel.distanthorizons.coreapi.interfaces.dependencyInjection.IBindable
finishDelayedSetup, getDelayedSetupComplete
Methods inherited from interface com.seibel.distanthorizons.api.interfaces.override.IDhApiOverrideable
getPriority
-
Method Details
-
update
Called before a render pass is done.- Parameters:
worldMinBlockY
- the lowest block position this level allows.worldMaxBlockY
- the highest block position this level allows.worldViewProjection
- the projection matrix used in this render pass.
-
intersects
boolean intersects(int lodBlockPosMinX, int lodBlockPosMinZ, int lodBlockWidth, int lodDetailLevel) returns true if the LOD bounds intersect this frustum- Parameters:
lodBlockPosMinX
- this LOD's starting block X position closest to negative infinitylodBlockPosMinZ
- this LOD's starting block Z position closest to negative infinitylodBlockWidth
- this LOD's width in blockslodDetailLevel
- this LOD's detail level- See Also:
-