예제 #1
0
void Material_Dielectric::WriteData(DataWriter& writer) const
{
    Material::WriteData(writer);

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

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