Move the static generation into the shader