GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

Set a fixed value to R

Open jordanliuhao opened this issue 11 years ago • 1 comments

Is there a way for me to set all R to 20 without touching GB? Thanks

jordanliuhao avatar Jul 30 '15 17:07 jordanliuhao

Sure, a custom filter could use a fragment shader that only output 20/255 in the red channel and passed through the G, B, A channels untouched. That would be pretty easy to do.

BradLarson avatar Jul 30 '15 18:07 BradLarson