NORI_NAMESPACE_BEGIN PerlinTexture::PerlinTexture(const PropertyList &propList) { m_width = propList.getInteger("width", 256); m_height = propList.getInteger("height", 128); m_levels = propList.getInteger("levels", 1); m_texture.resize(m_height, m_width); }
Path(const PropertyList &propList) { m_maxDepth = propList.getInteger("maxDepth", 13); QString samplePolicy = propList.getString("samplePolicy", "SampleBoth"); if (samplePolicy == "SampleBsdf") { m_samplePolicy = ESampleBsdf; } else if (samplePolicy == "sampleLight") { m_samplePolicy = ESampleLight; } else { m_samplePolicy = EMis; } }
StudentsTTest(const PropertyList &propList) { /* The null hypothesis will be rejected when the associated p-value is below the significance level specified here. */ m_significanceLevel = propList.getFloat("significanceLevel", 0.01f); /* This parameter specifies a list of incidence angles that will be tested */ std::vector<std::string> angles = tokenize(propList.getString("angles", "")); for (auto angle : angles) m_angles.push_back(toFloat(angle)); /* This parameter specifies a list of reference values, one for each angle */ std::vector<std::string> references = tokenize(propList.getString("references", "")); for (auto angle : references) m_references.push_back(toFloat(angle)); /* Number of BSDF samples that should be generated (default: 100K) */ m_sampleCount = propList.getInteger("sampleCount", 100000); }
Independent(const PropertyList &propList) { m_sampleCount = (size_t) propList.getInteger("sampleCount", 1); m_random = new Random(); }
PhotonMapper(const PropertyList &props) { /* Lookup parameters */ m_photonCount = props.getInteger("photonCount", 1000000); m_photonRadius = props.getFloat("photonRadius", 0.0f /* Default: automatic */); m_shootedRays = 0; }