rfm2  22.0
A python-based rewrite of RenderMan for Maya
rfm2.vp.pxr_light Namespace Reference

Classes

class  Vp2ShaderCache
 
class  LightTracker
 
class  VP2LightDesc
 
class  VP2Item
 
class  PxrLightGeometryOverride
 

Functions

def create_from_class (cls)
 
def make_geo_class (desc, dagcls)
 
def register_prefs ()
 

Variables

dictionary GEO_CLS
 
list STOCK_SHADERS = [at for at in dir(omr.MShaderManager) if at.startswith('k3d')]
 
dictionary STOCK_SHADERS_IDX = {name: getattr(omr.MShaderManager, name) for name in STOCK_SHADERS}
 
list RITEM_TYPES
 
list RITEM_PRIMS
 
list SHINST_TYPES
 

Detailed Description

Define and build VP2 geometry overrides.

Function Documentation

◆ create_from_class()

def rfm2.vp.pxr_light.create_from_class (   cls)
Closure to return a fully configured creator() static method.

Returns:
    object: the configured static method.
+ Here is the caller graph for this function:

◆ make_geo_class()

def rfm2.vp.pxr_light.make_geo_class (   desc,
  dagcls 
)
Create a dynamic class for the VP2 light/lightfilter representation.
+ Here is the call graph for this function:

◆ register_prefs()

def rfm2.vp.pxr_light.register_prefs ( )
Register viewport light prefs in Maya.

Variable Documentation

◆ GEO_CLS

dictionary rfm2.vp.pxr_light.GEO_CLS
Initial value:
1 = {
4  'disk': rfm2.vp.geo.disk.Disk,
10  'ramp': rfm2.vp.geo.ramp.Ramp,
11  'rect': rfm2.vp.geo.rect.Rect,
14 }
Definition: archive.py:70
Definition: arrow.py:58
Definition: disk.py:59
Definition: frustum.py:89
Definition: projective_frustum.py:130
Definition: r_inside.py:60
Definition: r_outside.py:63
Definition: ramp.py:54
Definition: rect.py:63
Definition: rounded_rect.py:49
Definition: sphere.py:57
Definition: vertex_array.py:56

◆ RITEM_PRIMS

list rfm2.vp.pxr_light.RITEM_PRIMS
Initial value:
1 = ['kInvalidPrimitive', 'kPoints', 'kLines', 'kLineStrip',
2  'kTriangles', 'kTriangleStrip', 'kAdjacentTriangles',
3  'kAdjacentTriangleStrip', 'kAdjacentLines', 'kAdjacentLineStrip',
4  'kPatch']

◆ RITEM_TYPES

list rfm2.vp.pxr_light.RITEM_TYPES
Initial value:
1 = [tup[1] for tup in sorted([(getattr(
2  omr.MRenderItem, at), at) for at in dir(omr.MRenderItem) if at.endswith('Item')])]

◆ SHINST_TYPES

list rfm2.vp.pxr_light.SHINST_TYPES
Initial value:
1 = ['kInvalid', 'kBoolean', 'kInteger', 'kFloat', 'kFloat2',
2  'kFloat3', 'kFloat4', 'kFloat4x4Row', 'kFloat4x4Col',
3  'kTexture1', 'kTexture2', 'kTexture3', 'kTextureCube',
4  'kSampler']

◆ STOCK_SHADERS

list rfm2.vp.pxr_light.STOCK_SHADERS = [at for at in dir(omr.MShaderManager) if at.startswith('k3d')]

◆ STOCK_SHADERS_IDX

dictionary rfm2.vp.pxr_light.STOCK_SHADERS_IDX = {name: getattr(omr.MShaderManager, name) for name in STOCK_SHADERS}