# SetSpriteAdditionalImage

## Description

Adds additional images to the sprite that can be used with shaders. The image set with SetSpriteImage is used as texture stage 0, and this command will let you set stages 1 to 7. These additional images do not play any part in animation or shape calculations. Note that the sprite will have the same UV coordinates for each texture so it is recommended that the images have the same dimensions, or use power of 2 images to avoid UV conversions on mobile devices where images might be scaled.

## Definition

SetSpriteAdditionalImage ( iSpriteIndex, iImageIndex, iStage )

void agk::SetSpriteAdditionalImage ( UINT iSpriteIndex, UINT iImageIndex, int iStage )

## Parameters

- iSpriteIndex - The ID of the sprite to modify.
- iImageIndex - The ID of the image to use for this sprite.
- iStage - The index of the texture stage to use, in the range 1 to 7.