Texture_set_swizzle - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Description

Sets the swizzles that will be applied to the color components of a texel in the texture before they are returned to the shader.

Parameters

Parameter Data Type Description
texid integer index of the texture
r integer red color component
g integer blue color component
b integer green color component
a integer alpha color component

Return Values

void: This function does not return anything.

Example Call

// demonstrates setting the swizzle color of a texture to half opaque pure red
texture_set_sizzle(tex, 255, 0, 0, 0.5);

NOTOC