Fresnel の反射率、薄膜干渉の色、回折格子の色、ベクトル形の屈折(光線ごとの全反射判定つき)を、実在の硝材の分散を含めて計算します。
Fresnel reflectance, thin-film interference colour, grating colour, and vector-form refraction with a per-ray total-internal-reflection mask — with the dispersion of real glasses.
向く: 外観のシミュレーション、照明設計、透明体を通した計測の補正。
向かない: ★バッチで屈折させるときは refract_rays を使ってください。refract は 1 本でも全反射があるとバッチ全体が None になります(2026-09-08 まで、refract の説明はこのことに触れながら refract_rays の存在を書いていませんでした)。
import fullseye as fs
r = fs.ledger.fresnel_dielectric(0.5, n1=1.0, n2=1.5168) # cos(入射角)=0.5
print('反射率 =', r)
fresnel_dielectric / thin_film_reflectance / grating_rgb / refract_raysglass_and_mirror_optics、appearance_structural_colour