| 12 | |
| 13 | |
| 14 | void CIE::LoadData() |
| 15 | { |
| 16 | AssetPtr<core::StubData> jsonCieText = core::ResourceManager::Instance()->GetAssetData<core::StubData>(core::HashString("cie.json")); |
| 17 | |
| 18 | core::JSON::Parser parser = core::JSON::Parser(std::string(jsonCieText->GetText(), jsonCieText->GetLength())); |
| 19 | core::JSON::Object* root = parser.GetRoot(); |
| 20 | |
| 21 | m_Table = (*root)["2 deg color matching"]->arr()->NumArr(); |
| 22 | auto jxyz = (*root)["xyz to rgb"]; |
| 23 | core::JSON::ArrayMatrix(jxyz, m_CieToRgb); |
| 24 | } |
| 25 | |
| 26 | dvec3 CIE::GetValue(double wavelength, double lambdaMin, double lambdaMax) |
| 27 | { |
no test coverage detected