Can someone advice if there is possibility to set borders color for my mesh programatically?
If not, then what is the choices and how to do it ?
(mesh it loaded from file: cube.mesh)
Thanks
UPDATE:
To be more precies I need to have border on each of the cube sides (but not an triangles inside, just rectangles)
Using this material script does not work
Code: Select all
material BordersForCube
{
// Vertex program waving grass
technique
{
pass
{
texture_unit
{
colour_op_ex source1 src_manual src_current 1.0 0.0 0.0
tex_address_mode clamp
tex_border_colour 1 1 1 1
}
}
}
}