brdf_blinn_phong — SPECULAR reflectance op

• 資料種類:normalmap → image2d

• 呼叫: import fullseye as fs; fs.ledger.brdf_blinn_phong(normals, light=(0.0, 0.0, 1.0), view=(0.0, 0.0, 1.0), shininess=32.0)(要直接呼叫實作,import specularity; specularity.brdf_blinn_phong(normals, light=(0.0, 0.0, 1.0), view=(0.0, 0.0, 1.0), shininess=32.0);從台帳取用則 opsspecular.get("brdf_blinn_phong"))

用法

Blinn 的半向量鏡面波瓣。→ [0, 1] 的 (H, W)。

> 以下的詳細說明為原文 —— 摘要與標題已翻譯。

max(n.h, 0) ** shininess where h is the unit bisector of the light and view directions (Blinn 1977), zeroed wherever the surface faces away from either. Exactly 1 where the normal *is* the half-vector — the mirror condition — and it falls monotonically from there.

Unnormalised on purpose. The classical Blinn-Phong lobe does not integrate to a fixed value; its peak is 1 and its energy grows as the exponent shrinks. It is a shading model, useful because its peak location is exact and because it is a *different* lobe shape from brdf_microfacet — a separation routine that only works on one of the two is fitting the lobe, not the model. For an energy-consistent lobe use brdf_microfacet.

Reciprocal in light and view to machine precision (measured exactly 0.0 maximum difference in tests/test_specularity.py), because the half-vector is symmetric and the visibility test covers both sides.

Raises ValueError: *normals* is not an (H, W, 3) field or contains a zero-length normal; *light* / *view* are not non-zero 3-vectors; *shininess* is negative, non-finite, a string or a bool; light and view are exactly opposite.

詳細使用指南

• specular_photometric 族使用指南

參考(範例資料、文獻)

• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。

• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。

• 演算法的正典(作者、年份)與用途見上面的族使用指南。

可執行的範例(實際呼叫該運算子並已驗證的樣例)

• specular_photometric — py -3.11 examples/specular_photometric.py

型別可銜接的下一個運算子(可接受 image2d 作為輸入)

polarization_render

同類別(reflectance)

brdf_microfacet · dichromatic_render


*Provenance: specularity.py — SPECULAR 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*

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