# SetObjectMeshNormalMap

## Description

Sets an object mesh to use the specified image as a normal map. The normal map will be placed in texture stage 2, overwriting anything that is already there and will have a shader generated that combines it with any dynamic lighting, to correctly light the object. If you are setting your own shader with SetObjectShader then your shader will have to make use of the normal map itself as AGK will not modify your shader in this way. Mesh indices are in the range 1 to GetObjectNumMeshes

## Definition

SetObjectMeshNormalMap( objID, meshIndex, imageID )

void agk::SetObjectMeshNormalMap( UINT objID, UINT meshIndex, UINT imageID )

## Parameters

- objID - The ID of the object to modify.
- meshIndex - The index of the mesh to modify, first mesh is at index 1.
- imageID - The ID of the image to use as a normal map.