Optimize opacity clamping
Merge pull request #1913 from fredj/heatmap-clamp

Optimize opacity clamping