#4062 Score: 0
戴皓天
Participant
9 pts

因为光源有两个,所以他们的光照计算结果要叠加,应该是result_color+=ambient+diffuse+specular,而不是用赋值,用赋值的话对第二个光源的计算结果会把第一个的覆盖掉

  • This reply was modified 2 years, 10 months ago by 戴皓天.