parameterizing some of what goes on in the shader boxes sketch
templated Pool class