 
     if (current_fragment_read_status)
     {
-      // clr = blend(clr, current_fragment.color);
-
       // set Fragment value
       finalColor = finalColor + fragmentColor * (1.0f - finalColor.a);
+      //finalColor = blend(finalColor, fragmentColor);
     }
 
     if (finalColor.a > 0.999)

            max(distance(textureStartPos.xyz * textureAtlasSize,
                         textureEndPos.xyz * textureAtlasSize),
                segment_texture_length);
        // vec4 texCoord = volumes[0].textureMatrix * inverse(viewMatrix) *
        // current_fragment.eyePos;
        // float value = texture(volumeSampler, texCoord.xyz).r;
        // current_fragment.color.rgb = vec3(value);
        // current_fragment.color.rgb = vec3(texCoord.xyz);

        // vec4 transferFunction = Texture(volumes[0].textureAddress,
        //   vec2(textureStartPos.x, volumes[0].transferFunctionRow));
        // fragmentColor = transferFunction;

          // pos_proj.z /= pos_proj.w;
          // pos_proj.z += 1.0f;
          // pos_proj.z /=2.0f;
        }  // sampling steps
      }  // if (activeobjectcount > 0) ...
    }
    else
