fullseye

thin_film_rgb — OPTICS appearance op

使い方

法線マップ + 視線 → 薄膜干渉の色 (H, W, 3) の線形 sRGB。

面が視線に対して寝ているほど膜内の光路が伸び、色が短波長側へ動く ―― シャボン玉や 焼けたチタンの色が縁で変わるのはこれ。角度依存は cosθ = |n·v| から出す。

normals / view: (H,W,3) 法線マップ / 面から視点への方向。 thickness_nm / n_film / n_sub: :func:thin_film_reflectance と同じ。 strength: 全体の強さ。

ファミリ共通の入力契約(fail-closed)

optics の全 op は入力を検証してから計算する(黙って通さない):

詳しい使い方ガイド

背景知識ガイド(この op の手前にある物理・規約)

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(rgbimage を入力に取れる)

clearcoat_shade · wetness · defocus_blur · diffraction_blur · sensor_capture

同カテゴリ(appearance)

cie_xyz_from_wavelength · spectrum_to_srgb · thin_film_reflectance · grating_wavelengths · grating_rgb · ward_anisotropic


Provenance: matappear.py — OPTICS operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.