public ColorizeArgs(ColorMap <Vec3> colorMap) { Keys = ReadBuffer(colorMap.Keys().ToArray()); Colors = ReadBuffer(colorMap.Values().Select(v => new Vec4(v, 1f)).ToArray()); Count = Value(colorMap.Count); }
public ColorizeArgs(ColorMap <Vec4> colorMap) { Keys = ReadBuffer(colorMap.Keys().ToArray()); Colors = ReadBuffer(colorMap.Values().ToArray()); Count = Value(colorMap.Count); }