Add basic ui controller

This commit is contained in:
2020-07-15 18:12:50 -07:00
parent 66dd0a6206
commit 1316dbb553
12 changed files with 346 additions and 17 deletions

11
Assets/Shaders/HSL.cginc Normal file
View File

@ -0,0 +1,11 @@
#ifndef HSL_INCLUDED
#define HSL_INCLUDED
inline float3 HSL2RGB(float3 hsl) {
int3 n = int3(0, 8, 4);
float3 k = (n + hsl.x * 12) % 12;
float a = hsl.y * min(hsl.z, 1 - hsl.z);
return hsl.z - a * max(-1, min(k - 3, min(9 - k, 1)));
}
#endif