Volume Ray Casting Emissive plus Absorption

Hi all,

A question concerning how to perform the compositing stage of front-to-back volume ray casting.

I wanna check if this looks fine?

  
 Cout = Cin + (1.0f - Ain) * C;
 Aout = Ain + (1.0f - Ain) * A;