Skip to Main Content Skip to Search
Product Documentation

diffuse - Calculate diffuse reflectance

Syntax

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

Description

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.

See Also

specular | surfl | surfnorm

How To

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS