DriftTexture · const

REMAP_SEMANTICS

The order REMAP_CHANNEL packs a semantic in, which is CHANNEL_SEMANTICS and not a copy of it.

Explained in DriftTexture.

const REMAP_SEMANTICS: readonly ChannelSemantic[]
import { REMAP_SEMANTICS } from '@driftengine/texture';

In depth

It was a copy until 2026-09-20, written out again here — the same eleven names in the same order in two files, with nothing holding them together. That is a list a file's channels are numbered by: the two drifting apart means every material written by one and read by the other decodes its channels as something else, and a normal map read as roughness inverts every highlight in a scene. The name is kept because terrainTexture.ts, the WGSL interpreter's test and this file all say REMAP_SEMANTICS when they mean the packing.