Model loading · interface

ChannelSource

A channel of an image, as a socket reads it.

Explained in Importing models.

interface ChannelSource
import type { ChannelSource } from '@driftengine/assets';

Properties

NameTypeDescription
imagereadonlyBlendStruct
channelreadonly'rgb' | 'r' | 'g' | 'b' | 'a'rgb for a colour socket; one channel for a scalar socket.