- Home /
HSBColor correction on the camera
Hi there. I'm trying to find out how to add Hue, Saturation and Brightness properties to my main camera. I would like to extend the color correction curves script with this extra functionality but I'm not sure how to achieve that. I would greatly appreciate some guidelines of how to do it. I have some C# and shading experience.
Cheers,
Kamil
Answer by kamil.slawicki · Jun 29, 2011 at 01:33 PM
I found this website and ported the shader over to my scene. I'm applying the shader to the camera as one of the post processing FX.
If there are any questions on "how to do it" I'm more than happy to explain it.
aye, first convert your "answers" to comments guys, don't want this thread to get too messy, now, I did it ages ago and I can't find the shader I used for it before. Anyway I don't know how much shader knowledge you have, but if you can look at built in GrayscaleEffect script and shader and you know how they both work you will be ok. So basicly you need to copy most of the code from the link provided, you will need a function Hue_2_RGB and ins$$anonymous$$d of main you will have to write a fragment program that will do just the same, the corresponding c# script will pass the HSL vals into the shader. It's really straight forward. If you run into and more problems just add a comment explaining where you got stuck and I will try to help.
Your answer
![](https://koobas.hobune.stream/wayback/20220612124504im_/https://answers.unity.com/themes/thub/images/avi.jpg)