This usually has to do with lighting renders. Even with smooth lighting on (or at 100% using OptiFine), occasionally a microblock will register as "inside" a block, and thus be shaded.
For things like wall paneling to disguise tubes/cables, smooth lighting needs to be on to get the lighting to match.