Posted By: jumpman
How to force more personal textures into an FX file - 08/08/18 05:49
Hi friends!
Im trying to put more textures into a shader, similar to entSkin1-4. Ideally I would like entSkin1-10, or entSkin1-100!
I see in the manual, that if you name a texture with _bmap at the end of the name, within the fx file, you can set up an arbitrary amount of textures to be used, however these textures are global.
How would I be able to a unique set of textures for each entity, but using the same shader?
I see this method in the d3d9.h
Would I be able to use that in the materials event?
This doesnt work, it gives me a script crash within the material event.
Im trying to put more textures into a shader, similar to entSkin1-4. Ideally I would like entSkin1-10, or entSkin1-100!
I see in the manual, that if you name a texture with _bmap at the end of the name, within the fx file, you can set up an arbitrary amount of textures to be used, however these textures are global.
How would I be able to a unique set of textures for each entity, but using the same shader?
I see this method in the d3d9.h
Code:
STDMETHOD(SetTexture)(THIS_ D3DXHANDLE hParameter, LPVOID /*LPDIRECT3DBASETEXTURE9*/ pTexture) PURE;
Would I be able to use that in the materials event?
Code:
_fx->SetTexture("ClothFloatA1bmap",bmpFoamTex);
This doesnt work, it gives me a script crash within the material event.