Skip to content

Rust counterpart to ParamSet::AddSampledSpectrumFiles(...) #59

@wahn

Description

@wahn

The following named material needs attention:

$ grep 'MakeNamedMaterial "Metal' ~/git/gitlab/rs-pbrt-test-scenes/pbrt/pbrt_vw_van/vw-van.pbrt  -A 4
MakeNamedMaterial "Metal - Chrome" 
        "float roughness" [ 0.01 ] 
        "string type" [ "metal" ] 
        "spectrum k" "spds/Al.k.spd"
        "spectrum eta" "spds/Al.eta.spd"

The two lines for "spectrum k" and "spectrum eta" will result in C++ calls to pbrt::ParamSet::AddSampledSpectrumFiles:

void ParamSet::AddSampledSpectrumFiles(const std::string &name,
                                       const char **names, int nValues) {
...
}

We don't have a Rust counter part to that function (yet).

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions