def rfm2.vp.geo.frustum.Frustum.__init__ |
( |
|
self, |
|
|
|
jsondict |
|
) |
| |
def rfm2.vp.geo.frustum.Frustum.idx_buffer |
( |
|
self, |
|
|
|
idx_buffer, |
|
|
|
num_vtx, |
|
|
|
start_idx, |
|
|
|
inst_idx |
|
) |
| |
Fill the provided index buffer to draw the shape.
Args:
- idx_buffer (omr.MIndexBuffer): un-allocated storage for our result.
- num_vtx (int): The total number of vertices in the VBO.
- startIdx (int): the index of our first vtx in the VBO
- item_idx (int): 0 = outer frustum, 1 = inner frustum, 2 = frustum edges
def rfm2.vp.geo.frustum.Frustum.instance_enabled |
( |
|
self, |
|
|
|
instance_idx |
|
) |
| |
Return the enable state of the instance/MRenderItem, potentially
taking named params into account.
def rfm2.vp.geo.frustum.Frustum.is_static |
( |
|
self | ) |
|
Tells the vp code if the geometry is static or deforming, like a spot
light frustum for example
def rfm2.vp.geo.frustum.Frustum.opacity |
( |
|
self | ) |
|
def rfm2.vp.geo.frustum.Frustum.set_input_params |
( |
|
self, |
|
|
|
obj, |
|
|
|
kwargs |
|
) |
| |
Update internal input param values using kwargs.
def rfm2.vp.geo.frustum.Frustum.vtx_buffer |
( |
|
self | ) |
|
Return a list of vertices (list) in local space.
Use the vtx_list (the original light shape) to build the outer coneAngle
at the specified depth.
def rfm2.vp.geo.frustum.Frustum.vtx_buffer_count |
( |
|
self | ) |
|
Return the number of vertices in this buffer.
rfm2.vp.geo.frustum.Frustum.angle |
rfm2.vp.geo.frustum.Frustum.base_shape |
rfm2.vp.geo.frustum.Frustum.depth |
rfm2.vp.geo.frustum.Frustum.softness |
The documentation for this class was generated from the following file:
- /data/wlw/renderman_root/rat/apps/rfm/scripts/rfm2/vp/geo/frustum.py