public static float GetBrightness(this Vector3 vec) { return vec.X * 0.299f + vec.Y * 0.587f + vec.Z * 0.114f; }