initialized properly before rendering. Effect was that shadow for Objects without material looked weird.