It would depend on when the 5 or so hours of direct sunlight would occur. If it were from around 11:00AM until 4:00 PM, when the light rays would be at their most direct downward angle, and the rest received a goodly amount of indirect sunlight, you could still get very good results. If the hours of direct light were early morning or late afternoon when the sun would be low and the angle of light it's least direct and weakest, The results would likely not be all that spectacular.
I used to grow on a deck where a tree would partially block the morning light but from about 10:30 AM or 11:00 AM until about 5:00 PM the plants received direct light. The rest of the day it was filtered and or indirect/reflected light. I grew some very good plants under those conditions, large plants with large dense buds from the cola to the bottom of the plants.
Your latitude will also factor in to the results. What I did was in the Southern U.S. but I would not have done as well at a more Northerly latitude, like say the U.P. of Michigan.
More direct light rays, less angle, means increased intensity and enough of that can make up, at least to a point, for the total number of hours of direct light.
If anyone needs an example of how much more intense direct sun rays will be at different latitudes, when you have absolutely no tan at all take your shirt off and go outside from 12:00 noon until 1:00 PM in the U.P. and another time do the same thing in Southern Georgia or maybe Southern Florida or Southern Texas. That night your skin will explain the difference to you.