Code:
technique test	{
pass p0 {
TextureFactor = 0xFFDD00; // Set color
ColorArg1[0] = TFactor;
ColorOp[0] = SelectArg1;
ZWRITEENABLE = TRUE;
ZFUNC=ALWAYS ;
}
}



This is what I've got. A model is colored yellow. It shall be rendered above ANY mesh and geometry. Right now it's just rendered above level geometry but not models and terrain I don't know why and how to change it. Logic tells me I need something like "write 99999 (or whatever) into z-buffer" but this isn't possible is it? I don't want to use view entities because this needs to be dynamic and I don't want to declare 50 or more view entities (uh performance?). Is it possible to draw above everything in the view (except panels etc. of course)?


Follow me on twitter