帮助中心帮助中心
计算漫反射
R = diffuse(Nx,Ny,Nz,S)
R = diffuse(Nx,Ny,Nz,S) 返回一个法向量分量 [Nx,Ny,Nz] 形式的曲面反射。S 指定到光源的方向。可以将这些方向指定为三个向量 [x,y,z] 或两个向量 [Theta Phi](在球面坐标中)。
[Nx,Ny,Nz]
S
[x,y,z]
[Theta Phi]
朗伯定律:R = cos(PSI),其中 PSI 是曲面法向与光源之间的角度。
R = cos(PSI)
PSI
specular | surfnorm | surfl
specular
surfnorm
surfl
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office