Texture_set_stage - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Description
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.
Parameters
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. |
Return Values
void: This function does not return anything.
Example Call
// 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