Skip to main content

Function: convertToVec4()

convertToVec4(variable, channels): string

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

Returns glsl instruction for converting to vec4

Parameters​

variable​

string

channels​

1 | 2 | 3 | 4

Returns​

string