Why don't surfaces or patch objects that block light sources cast shadows on other surfaces or patches?

2 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 30 Dec 2021
Edited: MathWorks Support Team on 30 Dec 2021
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:

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!