Hello everyone,
I'm working on a simple way to create bitmap texture in a DirectX material. The steps:
1) (we create a Dx shader: ) meditMaterials[1] = DirectX_9_Shader ()
2) (we load the StandardFx shader: ) meditMaterials[1].effectfile = "\maps\fx\StandardFX.fx"
3) here must be the bitmap file in the diffuse...
I can check the bitmap file in the Dx shader, with this...:
meditMaterials[1].g_TopTexture
...and the result is (for example) : "Bitmap:D\test01.jpg"
But when i write this...:
meditMaterials[1].g_TopTexture = Bitmap:D\test02.jpg
...it is not work.
What is the right syntax of this line?
meditMaterials[1].g_TopTexture = ... what?
Thanks your answers in advance,
Matyrix
By Matyrix · 2010-05-03
lightcube · 2011-06-20
le1setreter · 2010-05-04
Anubis · 2010-05-04