fucking shaders... I still can't get it... mad
Code:
MATERIAL* mtlEffect = mtl_create ();
mtlEffect.effect = "pp_oldMovie.fx";

PANEL* panSource = pan_create("", 99 );
panSource.size_x = 128; // Define the size, otherwise...
panSource.size_y = 128; // 
panSource.bmap = bmap_createblack(panSource.size_x, panSource.size_y, 32); // ir has 0 values!!
panSource.target_map = bmap_createblack(panSource.size_x, panSource.size_y, 32);
set(panSource, SHOW);

PANEL* panDestiny = pan_create("", 1);
panDestiny.bmap = bmap_createblack(panSource.size_x, panSource.size_y, 32); // panDestiny bmap was pan Source, my fault...
set(panDestiny, SHOW);

PANEL* test_pan = pan_create("bmap = inv_temp.bmp;", 1);
test_pan.target_map = panSource.bmap;
set(test_pan, SHOW);

while(1){
	bmap_process(panDestiny.bmap, panSource.target_map, mtlEffect);
	bmap_process(test_pan.bmap, panSource.target_map, mtlEffect);
	wait(1);
}

I've defined size as you've said (can I use screen size, or isn't that necessary?), I've set target map of a new panel to the bmap of the main (source) panel, all I can see, is that my (test pan) panel is smaller than it was (playing with the size of the source panel doesn't affect on it), and it's isn't affected by shader! What am I doing wrong? frown


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung