hwAnisotropicShader_NV20/MNormalMapConverter.h
#ifndef MAYA_API_MNormalMapConverter
#define MAYA_API_MNormalMapConverter
class MNormalMapConverter
{
public:
enum OutFormatType
{
RGBA,
HILO
};
MNormalMapConverter(){};
~MNormalMapConverter(){};
bool convertToNormalMap(
unsigned char* inImagePtr,
unsigned int width,
unsigned int height,
OutFormatType outputPixelFormat,
float bumpScale = 1.0,
unsigned char* outImagePtr = NULL );
bool convertToHeightMap(
unsigned char* inImagePtr,
unsigned int width,
unsigned int height,
OutFormatType outputPixelFormat,
float heightScale = 1.0,
unsigned char* outImagePtr = NULL );
protected:
bool convertToNormalMap_InPlace(
unsigned char* inImagePtr,
unsigned int width,
unsigned int height,
OutFormatType outputPixelFormat,
float bumpScale );
};
#endif // MAYA_API_MNormalMapConverter