Skip to content

Instantly share code, notes, and snippets.

View OneYoungMean's full-sized avatar
🥴
要加油哦

OneYoungMean

🥴
要加油哦
View GitHub Profile
@OneYoungMean
OneYoungMean / Oklab.cs
Created October 15, 2024 02:33 — forked from Fonserbc/Oklab.cs
An implementation of the transformations to and from Oklab, along with color lerping using Oklab including unity's Gradient evaluation. For more information about Oklab by Björn Ottosson check https://bottosson.github.io/posts/oklab/
using UnityEngine;
/*
* Oklab Unity implementation by Ferran Bertomeu Castells @fonserbc
*
* Oklab by Björn Ottosson https://bottosson.github.io/posts/oklab/
* under Public Domain
*
* For the conversions, I understand unity's Color as a gamma-space color
*/