Hello !
I'v started building a splatter material for the terrain node,
so far I have a shader that blends 3 textures (1 texture has the alphas coded in its base colours + 3 textures).
This works OK but I'd like another texture plus an alphamap end so on...
So I rebuilt Irrlicht with
MATERIAL_MAX_TEXTURES = 8;
and added an extra texture but the new texture is just plain black.
(everything else works OK).
I'm on Windows but running Irrlicht under OGL (saw a thread that mentioned that this "fix/hack" doesn't work with DirectX and right enough, with DX drivers it crashes but I'm okay with OpenGL ^^).
So the question is, what should I do to make this evil 5:th texture work ?
Thanks !
More textures for the shader / recompile Irrlicht with 8 txt
-
hybrid
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Don't know how much effort it would be, just start with it and give some feedback so others (like me) won't have to go through all the details again.
The major problem will be the texture layer handling, and the fact that texture matrices drop in to the transformation matrix array. You might want to have a look at the latest SVN/trunk code, as some things have changed there - could be much easier now to go for more than 4 textures.
The major problem will be the texture layer handling, and the fact that texture matrices drop in to the transformation matrix array. You might want to have a look at the latest SVN/trunk code, as some things have changed there - could be much easier now to go for more than 4 textures.