私は自分の 3D ソフトウェア レンダリング アプリケーションに取り組んでおり、完全に稲妻に固執しています。フラットシェーディングをしようとしています。そんなこと知ってる:
a = polygonAmbient * lightSourceAmbient; //a=color of ambient
d = polygonDiffuse * lightSourceDiffuse * dot (polygonNormal , lightPosition ) ;
//d color of diffuse
polygon->color= a+d;
何polygonAmbient
をpolygondiffuse
使用する必要がありますか? 両方とも同じRGB値ですか?そして と はどうlightSourceAmbient
ですかlightSourceDiffuse.
?どうも