View Single Post
Old 17th May 2019, 16:55   #2
Nitorami
Major Dude
 
Join Date: Mar 2008
Location: Erlangen
Posts: 872
(1) Press M to edit the preset. Don't forget to activate the scrolllock key to prevent milkdrop from changing presets while you edit.

(2) If the preset has a comp shader section, got to the bottom of the code section, just before the closing "}" and insert a line

ret = lum(ret);
or similar, e.g. use ret = 1-lum(ret) to invert.

(3) if the preset has no comp shader section, select "upgrade presets pixel shader version" and confirm. If you get a compiler error such as "undeclared identifier 'sampler__main', go to the warp section and fix it by changing sampler__main to sampler_main.

Now continue with step 2.

(4) leave the edit menu and press s to save.
Nitorami is offline   Reply With Quote