Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xjine/unity_colorcorrectionshader

Shader functions to color correction
https://github.com/xjine/unity_colorcorrectionshader

shader unity

Last synced: 15 days ago
JSON representation

Shader functions to color correction

Awesome Lists containing this project

README

        

# Unity_ColorCorrectionShader

Shader functions to color correction.

## Functions

```hlsl
float4 RgbToHsv(float4 rgb)
float4 HsvToRgb(float4 hsv)
float4 RgbToHsl(float4 rgb)
float4 HslToRgb(float4 hsl)

float4 HsvShift(float4 rgb, float4 shift)
float4 HslShift(float4 rgb, float4 shift)

float4 GrayScale(float4 color)
float4 GrayScaleREC601(float4 color)
float4 GrayScaleREC709(float4 color)

float4 BrightnessSaturationContrast
(float4 color, float brightness, float saturation, float contrast)

float4 ColorCorrection
(float4 color, float4 bscPrams, float4 hsvShift)
```

## Importing

You can use Package Manager or import it directly.

```
https://github.com/XJINE/Unity_ColorCorrectionShader.git?path=Assets/Packages/ColorCorrectionShader
```