为了正确地使用 misss_physical 着色器,需要按照以下要求来设置场景:
以下 .mi 场景片段显示了一个设置示例:
link "subsurface.so" $include "subsurface.mi"
trace on caustic on globillum on
energy 10000 10000 10000 caustic photons 250000 globillum photons 250000
shader "myshader" "misss_physical" ("mode" 4) # use instance lights material options material "materialinstancename" = "myshader" photon = "myshader" end material
caustic 3 globillum 3
着色器在执行时通过信息消息提供有用反馈。建议在任何情况下都使用详细级别 5,以调试场景。着色器统计信息报告对于估算下列参数的正确值特别有用:
Copyright © 1986, 2015 NVIDIA ARC GmbH. All rights reserved.