/// <summary> /// Inspector. /// </summary> protected override void Inspector() { thisTarget.brightness = VintageEditorHelper.IntSliderWithReset("Brightness", VintageEditorHelper.TooltipBrightness, Mathf.RoundToInt(thisTarget.brightness * 100.0f), -100, 100, 0) * 0.01f; thisTarget.contrast = VintageEditorHelper.IntSliderWithReset("Contrast", VintageEditorHelper.TooltipContrast, Mathf.RoundToInt(thisTarget.contrast * 100.0f), -100, 100, 0) * 0.01f; thisTarget.gamma = VintageEditorHelper.SliderWithReset("Gamma", VintageEditorHelper.TooltipGamma, thisTarget.gamma, 0.01f, 10.0f, 1.0f); }
/// <summary> /// Inspector. /// </summary> protected override void Inspector() { thisTarget.hue = VintageEditorHelper.IntSliderWithReset("Hue", VintageEditorHelper.TooltipHue, Mathf.RoundToInt(thisTarget.hue * 360.0f), 0, 360, 0) / 360.0f; thisTarget.saturation = VintageEditorHelper.SliderWithReset("Saturation", VintageEditorHelper.TooltipSaturation, Mathf.RoundToInt(thisTarget.saturation * 100.0f), 0, 100, 100) * 0.01f; }