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