MATLAB: Don’t surfaces or patch objects that block light sources cast shadows on other surfaces or patches

blockingcastlightMATLABobjectsshadowshadowssources

I would like to know why surfaces or patch objects that block light sources do not cast shadows on other surfaces or patches.

Best Answer

MATLAB's implementation of light sources does not perform any ray tracing which is necessary to produce shadows. Light sources in MATLAB illuminate each object in the axes with respect to the object's lighting related properties only.
However, if you have the Mapping Toolbox, you may find the LOS2 and VIEWSHED functions useful:
Related Question