INNER CODE UNIT · Python

blocks_high

untoldengine/UntoldEngine · scripts/texbake.py:363

    blocks_high = math.ceil(height / block_h)
    return blocks_wide * blocks_high * 16

# ──────────────────────────────────────────────
# .utex writer
# ──────────────────────────────────────────────

def align_up(value: int, alignment: int) -> int:
    remainder = value % alignment
    return value if remainder == 0 else value + (alignment - remainder)


def write_utex(
    output_path: Path,
    mip_payloads: list[bytes],
    mip_dimensions: list[tuple[int, int]],
    cfg: SlotConfig,
    has_alpha: bool,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…