Hi,
Don't worry about the shader, its right. Let me explain.

Render the view over a bitmap.
Code:
VIEW *CAM_Minimap = view_create ( 1 );
CAM_Minimap.bmap = bmap_create ( "#256x256x24" );



Set a panel to show the minimap.
Code:
PANEL *PAN_Minimap = pan_create ( "flags=SHOW", 1 );
PAN_Minimap.bmap = bmap_create ( "#256x256x32" );



Set the material with the shader above
Code:
MATERIAL *MTL_Minimap = mtl_create ();
MTL_Minimap.effect = "minimap.fx";



Set the 32bit mask as the skin1 of the material
Code:
MTL_Minimap.skin1 = bmap_create ( "mask.tga" );



Process the view render target over the panel background bitmap
Code:
process_bmap ( PAN_Minimap.bmap, CAM_Minimap.bmap, MTL_Minimap );



hope it is clear enough wink

Salud!

edit_______
emms, a bit late grin

Last edited by txesmi; 05/30/12 00:16.