updated the math for translucency