Navigation

Operators and Keywords

Function List:

C++ API

: diffuse (sx, sy, sz, lv)

Calculate the diffuse reflection strength of a surface defined by the normal vector elements sx, sy, sz.

The light source location vector lv can be given as a 2-element vector [azimuth, elevation] in degrees or as a 3-element vector [x, y, z].

See also: specular, surfl.

Package: octave