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 )

Parameters