Trying to get materials to render

added compute function