This reverts commit c132da59.
Added const and override to all material-interface functions, sampler-function color, shape-function intersect.