When toonshading is used, also backfacing polygons are rendered. This causes a conflict with raytraced shadow, since backfacing polygons always have shadow. There was an error in the code that didnt set shadow for backfacing polys, assuming shading would be 'zero' then as well. That's fixed.