Ejemplo n.º 1
0
void Material_Dielectric::ReadData(DataReader& reader)
{
    Material::ReadData(reader);

    MaterialValueGraph graph;
    reader.ReadDataStructure(graph, "IndexOfRefraction");

    IndexOfRefraction = graph.GetRootVals()[0];
}
Ejemplo n.º 2
0
void Material_Medium::ReadData(DataReader& reader)
{
    Material::ReadData(reader);

    MaterialValueGraph graph;
    reader.ReadDataStructure(graph, "Albedo");

    Albedo = graph.GetRootVals()[0];
}