Esempio n. 1
0
InfiniteAreaLight::InfiniteAreaLight(rgba l, std::string const& filename)
    : l(std::move(l)), data(nullptr), width(0), height(0) {
    if (filename != "") {
        readExr(filename);
        buildDistribution();
    }
}
EmpiricalDistribution::EmpiricalDistribution(
        const std::vector<uint32_t>& vals,
        const std::vector<uint32_t>& lens) {
    buildDistribution(vals, lens);
}