Skip to content

Function: buildFluidBackQuads() ​

ts
function buildFluidBackQuads(kind, sample): FluidQuads;

Defined in: packages/minerender/src/model/fluid/FluidGeometry.ts:48

Vanilla's reverse fluid faces, in front-face order: every side, and the top when a cell above it is neither this fluid nor solid, so the surface shows from below. Bottoms have none. Reversed faces keep their front normals, so they are shaded like the faces they back, as vanilla shades them.

Parameters ​

ParameterType
kindFluidKind
sampleFluidSampler

Returns ​

FluidQuads