-
Notifications
You must be signed in to change notification settings - Fork 0
Texture_set_swizzle
hpgDesigns edited this page Aug 8, 2021
·
1 revision
Sets the swizzles that will be applied to the color components of a texel in the texture before they are returned to the shader.
| 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 |
void: This function does not return anything.
// demonstrates setting the swizzle color of a texture to half opaque pure red
texture_set_sizzle(tex, 255, 0, 0, 0.5);
NOTOC
This is number 1