customTextureShader/customTextureShaderOverride.h
#ifndef CUSTOMTEXTURESHADEROVERRIDE_H
#define CUSTOMTEXTURESHADEROVERRIDE_H
#include <maya/MPxShaderOverride.h>
#include <maya/MShaderManager.h>
{
public:
customTextureShaderOverride(
const MObject& obj);
virtual ~customTextureShaderOverride();
virtual MString initialize(
const MInitContext& initContext,MInitFeedback& initFeedback);
private:
void updateShaderInstance();
void generateCustomTexture();
void buildAndUpdateCustomDataTextureViaMaya();
bool m_shaderBound;
bool m_inBeautyPass;
bool m_inMultiDrawMode;
unsigned char* m_customTextureData;
};
#endif