class CShaderCallback : public irr::video::IShaderConstantSetCallBack
{
void OnSetConstants(irr::video::IMaterialRendererServices *services, irr::s32 userData)
{
int TexAddress = 2;
services->setPixelShaderConstant("baseMap", (float*)&TexAddress, 1);
}
};
Y2xhc3MgQ1NoYWRlckNhbGxiYWNrIDogcHVibGljIGlycjo6dmlkZW86OklTaGFkZXJDb25zdGFudFNldENhbGxCYWNrIAp7IAogICB2b2lkIE9uU2V0Q29uc3RhbnRzKGlycjo6dmlkZW86OklNYXRlcmlhbFJlbmRlcmVyU2VydmljZXMgKnNlcnZpY2VzLCBpcnI6OnMzMiB1c2VyRGF0YSkgCiAgIHsgCiAgICAgIGludCBUZXhBZGRyZXNzID0gMjsgCiAgICAgIHNlcnZpY2VzLT5zZXRQaXhlbFNoYWRlckNvbnN0YW50KCJiYXNlTWFwIiwgKGZsb2F0KikmVGV4QWRkcmVzcywgMSk7IAogICB9IAp9Ow==