i think this can be done with the LPD3DXEFFECT settexture() function but currently you have to do it with a plugin because the lite-c d3d9.h seems to be lacking the effect interface.