Skip to main content

Function: typeToChannelSuffix()

typeToChannelSuffix(type): "x" | "xy" | "xyz" | "xyzw"

Defined in: glsl/shader-utils.ts:63

convert glsl type to suffix

Parameters​

type​

string

Returns​

"x" | "xy" | "xyz" | "xyzw"