Home Forums Games202-高质量实时渲染 【作业2】球谐系数求教

  • This topic has 1 reply, 2 voices, and was last updated 1 year ago by tftl.
Viewing 1 reply thread
  • Author
    Posts
    • #8275 Score: 0
      Songsong
      Participant
      4 pts

      对于每一个像素点,通过公式可以获得一组球谐函数对应的系数,请问这个每一像素的系数和整体所求的环境光的系数是什么样的关系(实际返回的结果应该是一组环境光投影下来的系数),不是很理解这个地方

    • #8279 Score: 1
      tftl
      Participant
      1 pt

      可以看一下ext/spherical-harmonics/sh/spherical_harmonics.cc中的ProjectEnvironment函数。

      这个虽然是利用的不是cubemap,但是思路是类似的。

      注意其中weight项,想象一下cubemap的情况。

      This post has received 1 vote up.
Viewing 1 reply thread
  • You must be logged in to reply to this topic.