ヘルプ センターヘルプ センター
拡散光反射を計算
R = diffuse(Nx,Ny,Nz,S)
R = diffuse(Nx,Ny,Nz,S) は、通常のベクトル要素 [Nx,Ny,Nz] をもつ表面の反射を返します。S は、光源の方向を指定します。これらの方向は、3 つのベクトル [x,y,z] または 2 つのベクトル [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