diffuse
- :
r =diffuse(sx, sy, sz, lv)¶ Diffuse reflectance of surface normals.
sx, sy and sz are equally sized arrays with the components of the surface normals (any length) and lv is the direction towards the light, a 3-element vector or an [azimuth elevation] pair in degrees. The result has the size of sx and is max (0, n . l) for unit vectors n and l per element, i.e. the cosine of the angle between normal and light, clamped at zero for surfaces that face away from the light.