@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
24 lines (23 loc) • 915 B
TypeScript
/**
* transforms an input color (vec3) from RGB color space to Oklab
*
*
* @remarks
*
* This is using the algorithm from Inigo Quilez's https://www.shadertoy.com/view/WtccD7, which is implenting Björn Ottosson's
https://bottosson.github.io/posts/oklab/
*
*/
import { TypedGlNode } from './_Base';
import { NodeParamsConfig } from '../utils/params/ParamsConfig';
import { ShadersCollectionController } from './code/utils/ShadersCollectionController';
declare class RgbToOklabGlParamsConfig extends NodeParamsConfig {
rgb: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.VECTOR3>;
}
export declare class RgbToOklabGlNode extends TypedGlNode<RgbToOklabGlParamsConfig> {
paramsConfig: RgbToOklabGlParamsConfig;
static type(): string;
initializeNode(): void;
setLines(shaders_collection_controller: ShadersCollectionController): void;
}
export {};