Home Forums Games202-高质量实时渲染 【作业2】为什么aPrecomputeLT是mat3的变量?

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #8649 Score: 0
      renderkuang
      Participant

      aPrecomputeLT包含当个顶点的light transport球谐系数。所以不应该是一个3xSHcoeffNum的变量吗?3是rgb颜色空间的,SHcoeffNum是4或者9,那为什么应该写一个3×3的attribute?

    • #8667 Score: 0
      renderkuang
      Participant

      我错了,transport当然不分三个RGB颜色成分,只有环境光才是这样。debug看到了mat3的3×3变量就对应于9个球谐系数。

Viewing 1 reply thread
  • You must be logged in to reply to this topic.