perspective method
perspective
Creates perspective matrix.
Returns
Perspective transformation matrix.
def perspective(self, fov, aspect, near, far, distance):
...
Parameter | Type | Description |
---|---|---|
fov | float | Field of view value. |
aspect | float | Aspect ratio. |
near | float | Near Z value. |
far | float | Far Z value. |
distance | float | Distance to object. |