トーンカーブのGOLマクロ
tan(タンジェント)を調整してね。1だと45度の直線でテクスチャの色そのまま
http://i.imgur.com/X5ujCVH.jpg
var go = GameObject.FindGameObjectWithTag("MainCamera");
var comp = go.GetComponent<UnityStandardAssets.ImageEffects.ColorCorrectionCurves>();
comp.saturation=1f;//彩度
var tan = 0.3f;//0〜1で調整 0:コントラスト高 1:コントラスト低
Keyframe kf0 = new Keyframe(0, 0, 0, tan);
Keyframe kf1 = new Keyframe(1, 1, tan, 0);
comp.redChannel = new AnimationCurve(kf0,kf1);
comp.greenChannel = new AnimationCurve(kf0,kf1);
comp.blueChannel = new AnimationCurve(kf0,kf1);
comp.UpdateParameters();