Hi,
Don't worry about the shader, its right. Let me explain.
Render the view over a bitmap.
VIEW *CAM_Minimap = view_create ( 1 );
CAM_Minimap.bmap = bmap_create ( "#256x256x24" );
Set a panel to show the minimap.
PANEL *PAN_Minimap = pan_create ( "flags=SHOW", 1 );
PAN_Minimap.bmap = bmap_create ( "#256x256x32" );
Set the material with the shader above
MATERIAL *MTL_Minimap = mtl_create ();
MTL_Minimap.effect = "minimap.fx";
Set the 32bit mask as the skin1 of the material
MTL_Minimap.skin1 = bmap_create ( "mask.tga" );
Process the view render target over the panel background bitmap
process_bmap ( PAN_Minimap.bmap, CAM_Minimap.bmap, MTL_Minimap );
hope it is clear enough
![wink wink](/ubb7/images/graemlins/default_dark/wink.gif)
Salud!
edit_______
emms, a bit late
![grin grin](/ubb7/images/graemlins/default_dark/grin.gif)