Pan Kessel
New member
- Joined
- Jul 13, 2004
- Messages
- 3
Hi all,
i have programmed a little terrain engine. I tried to improve the look of the terrain by selecting the height values as diffuse colors of the vertices(i am using CustomVertex.PositionColoredTextured).
Now i want to do sth like this:
device.TextureState[0].ColorOperation = TextureOperation.AddSinged;
device.TextureState[0].ColorArgument0 = TextureArgument.TextureColor;
device.TextureState[0].ColorArgument1 = TextureArgument.Diffuse;
device.TextureState[0].AlphaOperation = TextureOperation.Disable;
But the result is a surface containing just grey colors. Even if i select TextureOperation.SelectArg1 i just get these colors.
Please help!
Pan
i have programmed a little terrain engine. I tried to improve the look of the terrain by selecting the height values as diffuse colors of the vertices(i am using CustomVertex.PositionColoredTextured).
Now i want to do sth like this:
device.TextureState[0].ColorOperation = TextureOperation.AddSinged;
device.TextureState[0].ColorArgument0 = TextureArgument.TextureColor;
device.TextureState[0].ColorArgument1 = TextureArgument.Diffuse;
device.TextureState[0].AlphaOperation = TextureOperation.Disable;
But the result is a surface containing just grey colors. Even if i select TextureOperation.SelectArg1 i just get these colors.
Please help!
Pan