change material to have const ref to shader program