4 ms·
I think they're referring to this: https://m2.material.io/design/environment/light-shadows.html https://m2.material.io/design/environment/light-shadows.html N
by vesinisa 3y ago
I think they're referring to this:
https://m2.material.io/design/environment/light-shadows.html https://m2.material.io/design/environment/light-shadows.html
Notice how there are actually two shadows that must be combined. The point light source shadow rendering depends on the object position on screen.
- ghusbands 3y agoA point light source can be at infinity. I don't think that design document implies that shadows need to change based on screen position. Note that "elevation" is about how far 'off' the background the element is pretending to be.
- chrismorgan 3y agoThey’re two shadows, but nothing calls them point sources; I claim that any reasonable implementer would from such descriptions absolutely presume them to be distant (as in, never have it even occur to them it might be otherwise). The only detail that seems confusing and could support otherwise is the sentence “On the web, shadows are depicted by manipulating the y-axis only.” (I’m using roughly SVG’s terminology: fePointLight has x, y and z, which can be approximately infinitely far away but it’ll only be approximately so, and feDistantLight, which has azimuth and elevation, and projects from infinity.)