Exemplo n.º 1
0
void Material_Dielectric::WriteData(DataWriter& writer) const
{
    Material::WriteData(writer);

    MaterialValueGraph graph(List<const MaterialValue*>(IndexOfRefraction.Get()));
    writer.WriteDataStructure(graph, "IndexOfRefraction");
}
Exemplo n.º 2
0
void Material_Medium::WriteData(DataWriter& writer) const
{
    Material::WriteData(writer);

    MaterialValueGraph graph(List<const MaterialValue*>(Albedo.Get()));
    writer.WriteDataStructure(graph, "Albedo");
}