Skip to content

Class: ModelCulling ​

Defined in: packages/minerender/src/model/ModelCulling.ts:7

Identifies fully opaque cubes and maps neighbor visibility to model-local face masks.

Constructors ​

Constructor ​

ts
new ModelCulling(): ModelCulling;

Returns ​

ModelCulling

Methods ​

isOpaqueFullCube() ​

ts
static isOpaqueFullCube(atlas): boolean;

Defined in: packages/minerender/src/model/ModelCulling.ts:23

Whether a model fills one block with opaque faces and can hide adjacent block faces.

Parameters ​

ParameterType
atlasMaybe<TextureAtlas>

Returns ​

boolean


toLocalMask() ​

ts
static toLocalMask(worldMask, rotation): number;

Defined in: packages/minerender/src/model/ModelCulling.ts:10

Rotates a world-direction bit mask into model space. Bits follow CUBE_FACES.

Parameters ​

ParameterType
worldMasknumber
rotationEuler

Returns ​

number