I hope custom color coding in frag shader,And I hope it can achieve alpha blend。

I hope custom color coding in frag shader,But OpenGL has a blend color format during the alpha blend stage. I hope OpenGL can implement custom color encoding decoding and mixing equations during the alpha blend stage. Is there any way to achieve this goal.