def write(self, pbrtwriter: PbrtWriter): pbrtwriter.lightSource("distant", "point from", self.position, "blackbody L", [6500, self.scale])
def write(self, pbrtwriter: PbrtWriter): with pbrtwriter.attribute(): pbrtwriter.rotate(270, [1, 0, 0]) pbrtwriter.lightSource("infinite", "integer nsamples", [16], "rgb L", [1, 1, 1], "string mapname", [self.filename])