-
Notifications
You must be signed in to change notification settings - Fork 0
Texture_set_stage
hugh greene edited this page Jun 20, 2022
·
1 revision
Sets the current texture binded to the given multitexture stage. This allows you to bind different textures to up to 8 stages or levels, however this number may be as low as 2 or 1 on mobile platforms as they traditionally do not have graphics hardware that supports such capability. It is useful for blending multiple textures onto models and primitives with shaders.
Parameter | Data Type | Description |
---|---|---|
stage | integer | Texture stage to set the texture of, should be 0 to 7. |
texid | integer | Index of the texture to bind for the given stage. |
void: This function does not return anything.
// demonstrates setting the first two stages of texturing for multitexturing
texture_set_stage(0, background_get_texture(bg_grass));
texture_set_stage(1, background_get_texture(bg_dirt));
NOTOC
Category:Function:All
edited by hpg678 on Github