Ok something is wrong with my presets. Will have to debug it. Cheers!
I think I found a bug: With the option BG_IMAGE_OVER = „1.000000“, the rotation fails as shown below. If I disable this option, rotation works as expected, i.e. the full screen is used. Latest koko-aio taken from GitHub.
Indeed, nothing wrong with your presets; it’s just that the rotated “aspect” were not handled and always treated as 4:3 by the alignment function.
However it was broken despite of BG_IMAGE_OVER value.
…btw It should be fixed now, and I will check if there is room for optimization on my Haswell later on.

Works perfectly now, thank you very much!
Answering here since it was a bit off topic.
It is certainly possible to create a standalone shader for adaptive black, but without prior knowing what is the context it would play with, it may require to be appended with an heavy full viewport pass at the very end of the chain (yup, in koko-aio I opted for the first pass for performance reasons and because I know how it behaves afterwards.
If you are using @guest.r shaders, it may be worth askinh him to implement inside its code, if possible.
Implementation is quite easy and publicly available if needed, but I’m 100% sure guest.r has no problems in figuring it out.
But yes, if that road is not feasible for whatever reason, ping me back again 
Another option is to follow Hunterk’s initial idea: a library of functions for other shaders to include and use without needing extra passes, maybe I could PR that specific function.
I kinda did that before (not for adaptive black though)
but I didn’t hear an answer from him yet, indeed it will be nice if guest add them (04-05 effects from Crt effects list since @guest.r shaders already has Crt-breathing as raster-bloom function)
anyway, more options is better, so your functions is welcomed too, its no problem if they need to be in viewport, presets makers should know and deal with that
My and @kokoko3k’s preset options are already Baroque Grade, adding tons of sub-parameters would make it more confusing. Sometimes it’s a tough decision what to offer as an option and what to hardwire or put into a config file.
To be honest, at first I know about your shader I thought your had too many options (This is what it should be because it has “advanced” in the name), but now I’d like more options 
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
https://mega.nz/file/Vb1THALB#KfrED_w8jH3XG66oTVDkvmfAJnAKzJblLQsT1gsu9CY

It is actually an improvement over the one in Koko-Aio (and I will probably import that)
- Range:
The more the range, the more the image will be darkened; 0.0 leave the image as is. - Method:
0.0 is destructive, it will crush dark tones to black. 1.0 keeps more detail, because it affects the gamma
…however 1.0 would perform much better with an output float framebuffer, which I couldn’t setup by myself, because it can have HDR implications if used as the last pass.
A thing that could be done would be to temporally smooth the effect, but if possible and acceptable as is, I’d rather not, so please, check 
Append or prepend is your choice, but beware, that it is a 2 pass shader with mipmap generation, so it may be heavy if done at framebuffer scale.
it’s good, thanks!
I think temporally smooth will worth it if all flyback adaptive voltage effects is done (so it’s up to @guest.r, or to be added in your koko-aio and used to make preset from ground up with koko-aio)
anyway, I am happy with adaptive_black-koko for now as it is, but still I hope someday for full 03-05 and 08 effects from my list above
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
will this be added in https://github.com/libretro/slang-shaders ?
I want to do update to my preset with it 



