fullseye

dichromatic_render — SPECULAR reflectance op

使い方

Forward dichromatic model: render a known highlight so a separation can be checked against it. → (H, W, 3).

I = albedo_rgb * max(n.l, 0) + specular * lobe(n) * illuminant_unit, the body term coming straight from :func:photometric.render_lambertian (called, not re-implemented, so the two modules cannot drift apart in convention) and the interface term carrying the illuminant colour, which is what makes the image obey the dichromatic model exactly.

albedo_rgb may be a single (3,) colour — the single-material case that :func:specular_diffuse_split handles without help — or an (H, W, 3) map, which is the textured case that needs body_rgb passed to the split.

model selects the lobe: "blinn_phong" (shininess) or "microfacet" (roughness, f0). Both are available on purpose: the separation operators must be blind to the lobe shape, and swapping the model is how that is tested rather than asserted.

This is a shading model, not light transport. No interreflection, no cast shadow, no subsurface term, no occlusion between pixels — the same boundary :mod:visiondesign draws. Its purpose is a synthetic image whose decomposition is known exactly.

Raises ValueError: geometry problems as in :func:brdf_blinn_phong; albedo_rgb is neither (3,) nor (H, W, 3); specular or ambient is negative, non-finite, a string or a bool; model is not in :data:BRDF_MODELS.

詳しい使い方ガイド

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

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

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

specular_diffuse_split · specular_coefficient_map · specular_free_transform · illuminant_from_dichromatic_planes

同カテゴリ(reflectance)

brdf_blinn_phong · brdf_microfacet


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

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