Colorspace Matrix Generator for Camac App

Enter source and target RGB primaries as xy chromaticity coordinates. The generated constant matrix converts linear source RGB to linear target RGB.

Source Primaries

Point x y

Target Primaries

Point x y

Matrix

Row-major display: targetRGB = M * sourceRGB

Shader code is emitted with column vectors in the float3x3 constructor, so it matches matrix * rgb multiplication.

Shader code