bsdf hair(vector N, vector tip, float lobe_shift, float lobe_width_lon, ...)
bsdf hair(vector N, vector tip, float lobe_shift, float lobe_width_lon, float lobe_with_azi, ...)
bsdf hair(vector N, vector tip, float lobe_shift, float lobe_width_lon, float lobe_with_azi, float glint_shift, float glint_intensity, ...)
ヘアーのBSDFの詳細は、ソースファイル(hair_eval.vfl
)を見てください。
この関数の可変長引数は、CVEX評価関数に渡されます。
Examples ¶
これらの異なるシグネチャは、以下のコードと等価です:
bsdf hair(vector N; vector tip; float lobe_shift; float lobe_width_lon, ...) { cvex_bsdf("hair_eval", "hair_sample", "label", "diffuse", "tip", tip, "lobe_shift", lobe_shift, "lobe_width_lon", lobe_width_lon, ...); } bsdf hair(vector N; vector tip; float lobe_shift; float lobe_width_lon, float lobe_with_azi, ...) { cvex_bsdf("hair_eval", "hair_sample", "label", "refract", "tip", tip, "lobe_shift", lobe_shift, "lobe_width_lon", lobe_width_lon, "lobe_width_azi", lobe_width_azi, ...); } bsdf hair(vector N; vector tip; float lobe_shift; float lobe_width_lon, float glint_shift; float glint_intensity, ...) { cvex_bsdf("hair_eval", "hair_sample", "label", "reflect", "tip", tip, "lobe_shift", lobe_shift, "lobe_width_lon", lobe_width_lon, "glint_shift", glint_shift, "glint_intensity", glint_intensity, ...); }
See also | |
bsdf |
|
pbr |
|
shading |
|