update texture and shadow