Simple way to tint a color image to a single color?
So I have a full color movie, and I want to be able to gradually a apply a red tint to it, ie. I want to be able to regulate it from the unaltered image to an image that is basically black -> red.
I suspect what I want is to go from RGB to HSL, and then just change the H for all pixels to red, but I can't quite get my head round how to do it right now. Any thoughts?
Nevermind, jit.scalebias does this.
Nevermind, nevermind.
Just using jit.scalebias dramatically dims the display when tinting, if you just zero out the blue and green scales.
What works best is source -> jit.rgb.luma -> jit.matrix to make it 4 planes again -> jit.scalebias
You can also get some color effects using videoplanes and glsketch with glcolor and a blendmode of 0 3 (also try blendmode 4 5). This way, you can do the processing on the video card, and you don't have to worry about shaders, either.