Masking a second texture on to the first.
Blitz3D Forums/Blitz3D Programming/Masking a second texture on to the first.
| ||
Hey guys, I have a mesh that has a texture in index 0 and I have a second texure with flag set to 4 for a mask (all the black areas should be ignored) anyway, it's still rendering the black on the second texture. Anyone know why. Here is my code sippit. G\MapTex = LoadTexture("..\Texture_Map.jpg",48) EntityTexture G\MapMesh,G\MapTex,0,0 G\MapSelTex = LoadTexture("..\MapSelTestImage.bmp",4) EntityTexture G\MapMesh,G\MapSelTex,0,1 |
| ||
Looks like I got it. Blend mode had to be set to 1 |
| ||
Sorry, run that by me again. This is exactly what I've been trying to do. Which Blend mode? Do you mean TextureBlend? Could you post your code with the blend commands included? Thanks. |