Filling out over half of indicies of refraction
MODIFY
ext/MitsubaLoader/CElementBSDF.cpp
ext/MitsubaLoader/CElementBSDF.cpp
@@ -168,64 +168,64 @@ CElementBSDF::AllConductor::AllConductor(const std::string& material) : RoughSpe
{
#define SPECTRUM_MACRO(R,G,B,X,Y,Z) {SPropertyElementData(SPropertyElementData::Type::RGB,core::vectorSIMDf(R,G,B)),SPropertyElementData(SPropertyElementData::Type::RGB,core::vectorSIMDf(X,Y,Z))}
//{"a-C", SPECTRUM_MACRO(,,, ,,)},
- //{"Ag", SPECTRUM_MACRO(,,, ,,)},
- //{"Al", SPECTRUM_MACRO(,,, ,,)},
- //{"AlAs", SPECTRUM_MACRO(,,, ,,)},
- //{"AlAs_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"Au", SPECTRUM_MACRO(,,, ,,)},
- //{"Be", SPECTRUM_MACRO(,,, ,,)},
- //{"Be_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"Cr", SPECTRUM_MACRO(,,, ,,)},
- //{"CsI", SPECTRUM_MACRO(,,, ,,)},
- //{"CsI_palik", SPECTRUM_MACRO(,,, ,,)},
+ {"Ag", SPECTRUM_MACRO(0.059481f, 0.055090f, 0.046878f, 4.1367f, 3.4574f, 2.8028f)},
+ {"Al", SPECTRUM_MACRO(1.3404f, 0.95151f, 0.68603f, 7.3509f, 6.4542f, 5.6351f)},
+ {"AlAs", SPECTRUM_MACRO(3.1451f, 3.2636f, 3.4543f, 0.0012319f, 0.0039041f, 0.012940f)},
+ {"AlAs_palik", SPECTRUM_MACRO(3.145f, 3.273f, 3.570f, 0.0f, 0.000275f, 1.56f)},
+ {"Au", SPECTRUM_MACRO(0.21415f, 0.52329f, 1.3319f, 3.2508f, 2.2714f, 1.8693f)},
+ {"Be", SPECTRUM_MACRO(3.3884f, 3.2860f, 3.1238f, 3.1692f, 3.1301f, 3.1246f)},
+ {"Be_palik", SPECTRUM_MACRO(3.46f, 3.30f, 3.19f, 3.18f, 3.18f, 3.16f)},
+ {"Cr", SPECTRUM_MACRO(3.2246f, 2.6791f, 2.1411f, 4.2684f, 4.1664f, 3.9300f)},
+ {"CsI", SPECTRUM_MACRO(1.7834f, 1.7978f, 1.8182f, 0.0f, 0.0f, 0.0f)}, // note it's a crystall, so there is no extinction
+ {"CsI_palik", SPECTRUM_MACRO(1.78006f, 1.79750f, 1.82315, 0.0f, 0.0f, 0.0f)},
{"Cu", SPECTRUM_MACRO(0.32075f,1.09860f,1.2469f, 3.17900f,2.59220f,2.4562)},
- //{"Cu_palik", SPECTRUM_MACRO(,,, ,,)},
+ {"Cu_palik", SPECTRUM_MACRO(0.32000f, 1.04f, 1.16f, 3.15000f, 2.59f, 2.4f)},
//{"Cu20", SPECTRUM_MACRO(,,, ,,)},
//{"Cu20_palik", SPECTRUM_MACRO(,,, ,,)},
//{"d-C", SPECTRUM_MACRO(,,, ,,)},
//{"d-C_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"Hg", SPECTRUM_MACRO(,,, ,,)},
- //{"Hg_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"HgTe", SPECTRUM_MACRO(,,, ,,)},
+ {"Hg", SPECTRUM_MACRO(1.8847f, 1.4764f, 1.1306f, 5.1147f, 4.5410f, 3.9896f)},
+ {"Hg_palik", SPECTRUM_MACRO(1.850f, 1.460f, 1.100f, 5.100f, 4.600f, 3.990f)},
+ //{"HgTe", SPECTRUM_MACRO(,,, ,,)}, // lack of length wave range for our purpose https://www.researchgate.net/publication/3714159_Dispersion_of_refractive_index_in_degenerate_mercury_cadmium_telluride
//{"HgTe_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"Ir", SPECTRUM_MACRO(,,, ,,)},
- //{"Ir_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"K", SPECTRUM_MACRO(,,, ,,)},
- //{"K_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"Li", SPECTRUM_MACRO(,,, ,,)},
+ {"Ir", SPECTRUM_MACRO(2.4200f, 2.0795f, 1.7965f, 5.0665f, 4.6125f, 4.1120f)},
+ {"Ir_palik", SPECTRUM_MACRO(2.44f, 2.17f, 1.87f, 4.52f, 4.24f, 3.79f)},
+ {"K", SPECTRUM_MACRO(0.052350f, 0.048270f, 0.042580f, 1.6732f, 1.3919f, 1.1195f)},
+ {"K_palik", SPECTRUM_MACRO(0.0525f, 0.0483f, 0.0427f, 1.67f, 1.39f, 1.12f)},
+ {"Li", SPECTRUM_MACRO(0.14872f, 0.14726f, 0.19236f, 2.9594f, 2.5129f, 2.1144f)},
//{"Li_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"MgO", SPECTRUM_MACRO(,,, ,,)},
+ {"MgO", SPECTRUM_MACRO(1.7357f, 1.7419f, 1.7501f, 0.0f, 0.0f, 0.0f)},
//{"MgO_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"Mo", SPECTRUM_MACRO(,,, ,,)},
+ {"Mo", SPECTRUM_MACRO(0.76709f, 0.57441f, 0.46711f, 8.5005f, 7.2352f, 6.1383f)},
//{"Mo_palik", SPECTRUM_MACRO(,,, ,,)},
//{"Na_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"Nb", SPECTRUM_MACRO(,,, ,,)},
+ {"Nb", SPECTRUM_MACRO(2.2775f, 2.2225f, 2.0050f, 3.2500f, 3.1325f, 3.0100f)},
//{"Nb_palik", SPECTRUM_MACRO(,,, ,,)},
//{"Ni_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"Rh", SPECTRUM_MACRO(,,, ,,)},
+ {"Rh", SPECTRUM_MACRO(2.8490f, 2.6410f, 2.4310f, 3.5450f, 3.3150f, 3.1190f)},
//{"Rh_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"Se", SPECTRUM_MACRO(,,, ,,)},
+ {"Se", SPECTRUM_MACRO(1.4420f, 1.4759f, 1.4501f, 0.018713f, 0.10233f, 0.18418f)},
//{"Se_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"SiC", SPECTRUM_MACRO(,,, ,,)},
+ {"SiC", SPECTRUM_MACRO(2.6398f, 2.6677f, 2.7069f, 0.0f, 0.0f, 0.0f)},
//{"SiC_palik", SPECTRUM_MACRO(,,, ,,)},
//{"SnTe", SPECTRUM_MACRO(,,, ,,)},
//{"SnTe_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"Ta", SPECTRUM_MACRO(,,, ,,)},
+ {"Ta", SPECTRUM_MACRO(1.0683f, 1.1379f, 1.2243f, 5.5047f, 4.7432f, 4.0988f)},
//{"Ta_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"Te", SPECTRUM_MACRO(,,, ,,)},
+ {"Te", SPECTRUM_MACRO(4.1277f, 3.2968f, 2.6239f, 2.5658f, 2.8789f, 2.7673f)},
//{"Te_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"ThF4", SPECTRUM_MACRO(,,, ,,)},
+ {"ThF4", SPECTRUM_MACRO(1.5113f, 1.5152f, 1.5205f, 0.0f, 0.0f, 0.0f)},
//{"ThF4_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"TiC", SPECTRUM_MACRO(,,, ,,)},
+ {"TiC", SPECTRUM_MACRO(3.0460f, 2.9815f, 2.8864f, 2.6585f, 2.4714f, 2.3987f)},
//{"TiC_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"TiO2", SPECTRUM_MACRO(,,, ,,)},
- //{"TiO2_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"VC", SPECTRUM_MACRO(,,, ,,)},
+ {"TiO2", SPECTRUM_MACRO(2.1362f, 2.1729f, 2.2298f, 0.0f, 0.0f, 0.0f)},
+ {"TiO2_palik", SPECTRUM_MACRO(2.5925f, 2.676f, 2.78f, 0.0f, 0.0f, 0.0f)},
+ {"VC", SPECTRUM_MACRO(3.0033f, 2.8936f, 2.8138f, 2.4981f, 2.3046f, 2.1913f)},
//{"VC_palik", SPECTRUM_MACRO(,,, ,,)},
//{"V_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"VN", SPECTRUM_MACRO(,,, ,,)},
+ {"VN", SPECTRUM_MACRO(2.3429f, 2.2268f, 2.1550f, 2.4506f, 2.1345f, 1.8753f)},
//{"VN_palik", SPECTRUM_MACRO(,,, ,,)},
- //{"W", SPECTRUM_MACRO(,,, ,,)},
+ {"W", SPECTRUM_MACRO(0.96133f, 1.5474f, 2.1930f, 6.2902f, 5.1052f, 5.0325f)},
{"none", SPECTRUM_MACRO(0.f,0.f,0.f, 0.f,0.f,0.f)}
#undef SPECTRUM_MACRO
};

Filling out over half of indicies of refraction