Home Forums Games202-高质量实时渲染 环境光渲染出来偏暗 Reply To: 环境光渲染出来偏暗

#8333 Score: 0
cmc233
Participant
6 pts

我说的第二种情况意思是:你在prt里没乘kd/pi,然后在shader.glsl里写的是的kd/pi *sum TransportSHCoeffs*LightCoeffs,所以导致两倍不一样。
如果你shader.glsl也是直接sum TransportSHCoeffs*LightCoeffs,感觉就是gamma矫正的问题了,prt里保存png时做了如图的空间转换,在js里pow(vColor, vec3(1.0/2.2))应该就得到差不多结果了?

  • This reply was modified 3 years, 1 month ago by cmc233.
Attachments:
You must be logged in to view attached files.