示例#1
0
 def write(self, pbrtwriter: PbrtWriter):
     pbrtwriter.lightSource("distant", "point from", self.position,
                            "blackbody L", [6500, self.scale])
示例#2
0
 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])