Material color would be LinearRgb Unitless, would also have LinearRgb LuminousFlux for point lights and LinearRgb Illuminance for directional lights. chromaticityToLinearRgb would then take an additional Quantity Float units scale parameter.
Could make sense to have an internal LinearRgb module with functions like toLux, toLumens, toUnitless etc. for extracting an internal Vec3 in a type-safe way
Material color would be
LinearRgb Unitless
, would also haveLinearRgb LuminousFlux
for point lights andLinearRgb Illuminance
for directional lights.chromaticityToLinearRgb
would then take an additionalQuantity Float units
scale parameter.