Factor out weight function, change weight function to use position depth instead of fragment depth, remove test code.
Update example so the amount of translucency is obvious.