着色器

物理散射

此着色器执行三种类型的模拟,这些模拟可以一起使用,也可以单独使用:

多散射估算
最精确,使用光子跟踪的严格确定的模拟在内部光子贴图中记录地点。渲染时会查找这些地点,且优化的光线行进技术会估算多元散射辐照度。
单次散射近似
基于灯光强度,不受光子贴图的影响。
扩散原理
适用于估算深层中光子的贡献。

支持以下散射功能:

misss_physical
color "misss_physical" (
    color           "material",
    color           "transmission",
    scalar          "ior",
    vector          "absorption_coeff",
    vector          "scattering_coeff",     
    scalar          "scale_conversion",
    scalar          "scattering_anisotropy",
    scalar          "depth",
    integer         "max_samples",
    integer         "max_photons",
    scalar          "max_radius",
    boolean         "approx_diffusion",
    boolean         "approx_single_scatter",
    boolean         "approx_multiple_scatter",
    array light     "lights",
    integer         "mode")

该着色器为光学特性调整提供参数。该着色器必须同时作为材质着色器和光子着色器进行应用。

misss_physical_phen
material "misss_physical_phen" (
    color           "material",
    color           "transmission",
    scalar          "ior",
    vector          "absorption_coeff",
    vector          "scattering_coeff",
    scalar          "scale_conversion",
    scalar          "scattering_anisotropy",
    scalar          "depth",
    integer         "max_samples",
    integer         "max_photons",
    scalar          "max_radius",
    boolean         "approx_diffusion",
    boolean         "approx_single_scatter",
    boolean         "approx_multiple_scatter",
    array light     "lights",
    integer         "mode"
    )
version 4
这是一个与材质和光子窗口进行适当着色器连接的材质现象。其参数和行为与 misss_physical 相同。

Copyright © 1986, 2015 NVIDIA ARC GmbH. All rights reserved.