This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Calculate diffuse reflectance


R = diffuse(Nx,Ny,Nz,S)


R = diffuse(Nx,Ny,Nz,S) returns the reflectance of a surface with normal vector components [Nx,Ny,Nz]. S specifies the direction to the light source. You can specify these directions as three vectors[x,y,z] or two vectors [Theta Phi (in spherical coordinates).

Lambert's Law: R = cos(PSI) where PSI is the angle between the surface normal and light source.

Was this topic helpful?