def write(self, pbrtwriter: PbrtWriter): pbrtwriter.makeNamedMedium("Rayleigh", "string type", "homogeneous", "rgb sigma_s", self.I_s, "rgb sigma_a", [0, 0, 0]) pbrtwriter.mediumInterface("", "Rayleigh")
def write(self, pbrtwriter: PbrtWriter): I_s = tuple([self.I_s] * 3) I_a = tuple([self.I_a] * 3) pbrtwriter.makeNamedMedium("Fog", "string type", "homogeneous", "rgb sigma_s", I_s, "rgb sigma_a", I_a) pbrtwriter.mediumInterface("", "Fog")