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.