When you say the sun strikes his enclosure inside, is it through a window? If it is through a closed window, then it is useless. The needed UV's cannot pass through mesh or glass. So the sun shining into the room is no more helpful to him than a light bulb in the living room.
Glass blocks most UVB; mesh similar to window screen typically only blocks 30% or so UVB.