예제 #1
0
 def __init__(self, num_splits):
     self._split_count = num_splits
     self._mvps = PTALMatrix4f.empty_array(num_splits)
     self._nearfar = PTALVecBase2f.empty_array(num_splits)
     for i in range(num_splits):
         self._nearfar[i] = Vec2(20, 1000)
         mat = Mat4()
         mat.fill(0)
         self._mvps[i] = mat
     self._lens = OrthographicLens()
     self._lens.set_near_far(20, 1000)
     self._lens.set_film_size(100, 100)
     self._camera = Camera("PSSMDummy", self._lens)
     self._cam_node = NodePath(self._camera)
     self._parent = None
예제 #2
0
 def __init__(self, num_splits):
     self._split_count = num_splits
     self._mvps = PTALMatrix4f.empty_array(num_splits)
     self._nearfar = PTALVecBase2f.empty_array(num_splits)
     for i in range(num_splits):
         self._nearfar[i] = Vec2(20, 1000)
         mat = Mat4()
         mat.fill(0)
         self._mvps[i] = mat
     self._lens = OrthographicLens()
     self._lens.set_near_far(20, 1000)
     self._lens.set_film_size(100, 100)
     self._camera = Camera("PSSMDummy", self._lens)
     self._cam_node = NodePath(self._camera)
     self._parent = None
     self._resolution = 1024
     self._snap_grid = True
     self._sun_distance = 500.0