Home › Forums › Games202-高质量实时渲染 › 作业2 PRT 多次inter-reflection的结果问题 This topic has 0 replies, 1 voice, and was last updated 2 years, 8 months ago by qc. Viewing 0 reply threads Author Posts 2022年4月8日 at 下午3:12 #11255 Score: 0 qcParticipant 各位大佬,我开发的多次反射代码如下: 假设计算完shadowed后,每个顶点的球谐系数为SH[0] 每次反射k: 每个顶点 类似与sh::projectfunction,采样100条光线,计算交点,使用的是重心的SH系数。 这个SH系数是k-1次反射的sh结果result[k-1] L'(x,wi,k)的sh系数, SH[k] = sum(bary of SH[k-1] * dot(n,wi)) * 4 * PI / 采样数 result[k] = SH[K]/PI + SH[0] 最后在shader代码里,在计算最终光照时,要再除以PI。 但是这个结果输出以后,我感觉有点亮,是否正确没有把握,请各位大佬看看是否ok。 附件是5次反射的结果。 This topic was modified 2 years, 8 months ago by qc. Attachments:You must be logged in to view attached files. Author Posts Viewing 0 reply threads You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In