Package 'openpbr'

Title: 'OpenPBR' Surface Shading Headers
Description: Provides the header-only 'C++' implementation of the 'OpenPBR' surface shading model for physically based rendering <https://academysoftwarefoundation.github.io/OpenPBR/>. Combines diffuse reflection, metals, transparent dielectrics, coatings, fuzz, and subsurface scattering in a layered material model. Includes scattering evaluation and importance sampling.
Authors: Tyler Morgan-Wall [aut, cre] (ORCID: <https://orcid.org/0000-0002-3131-3814>), Adobe [aut, cph] (OpenPBR BSDF implementation)
Maintainer: Tyler Morgan-Wall <[email protected]>
License: Apache License (== 2.0)
Version: 1.1.1-0
Built: 2026-11-16 06:17:16 UTC
Source: https://github.com/tylermorganwall/openpbr

Help Index


OpenPBR Surface Shading Headers

Description

Provides Adobe's header-only implementation of the OpenPBR 1.1.1 material model for use in C++ code. A small native interface verifies a diffuse BSDF evaluation and reports the model version through openpbr_version.

Details

Add both openpbr and glmheaders to a consuming package's LinkingTo field. Include <glm/glm.hpp> before <openpbr/openpbr.h> in C++ source. The upstream API evaluates and samples a layered bidirectional scattering distribution. Geometry, light sampling, and volume integration are supplied by the consuming renderer.

Headers and embedded lookup tables are installed under system.file("include", package = "openpbr"). See the installed ‘COPYRIGHTS’ for the pinned upstream revision and the upstream repository below for API details.

Author(s)

Adobe (BSDF implementation); Tyler Morgan-Wall (R packaging).

References

https://github.com/adobe/openpbr-bsdf https://academysoftwarefoundation.github.io/OpenPBR/


OpenPBR Material Model Version

Description

Return the material model version supported by the bundled OpenPBR headers and verify the native interface with a diffuse scattering evaluation.

Usage

openpbr_version()

Value

A character scalar containing the OpenPBR material model version. This is distinct from the R package version reported by utils::packageVersion("openpbr").

Examples

# Verify the bundled model version and its diffuse scattering evaluation.
stopifnot(identical(openpbr_version(), "1.1.1"))