def __init__(self, *args, **kwargs): Light.__init__(self, *args, **kwargs) self.AddAttributes(Attr('Attenuation', pm.Vec3, PL.getAttenuation, PL.setAttenuation), Attr('Point', pm.Point3, PL.getPoint, PL.setPoint), Attr('Specular Color', pm.Vec4, PL.getSpecularColor, PL.setSpecularColor), parent='PointLight')
def __init__( self, *args, **kwargs ): Light.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'Attenuation', pm.Vec3, PL.getAttenuation, PL.setAttenuation ), Attr( 'Point', pm.Point3, PL.getPoint, PL.setPoint ), Attr( 'Specular Color', pm.Vec4, PL.getSpecularColor, PL.setSpecularColor ), parent='PointLight' )
def __init__( self, *args, **kwargs ): Light.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'Direction', pm.Vec3, DL.getDirection, DL.setDirection ), Attr( 'Point',pm.Point3, DL.getPoint, DL.setPoint ), Attr( 'Specular Color', pm.Vec4, DL.getSpecularColor, DL.setSpecularColor ), Attr( 'Shadow Caster', bool, DL.isShadowCaster, DL.setShadowCaster ), parent='DirectionalLight' )
def __init__(self, *args, **kwargs): Light.__init__(self, *args, **kwargs) self.AddAttributes(Attr('Direction', pm.Vec3, DL.getDirection, DL.setDirection), Attr('Point', pm.Point3, DL.getPoint, DL.setPoint), Attr('Specular Color', pm.Vec4, DL.getSpecularColor, DL.setSpecularColor), Attr('Shadow Caster', bool, DL.isShadowCaster, DL.setShadowCaster), parent='DirectionalLight')
def __init__( self, *args, **kwargs ): LensNode.__init__( self, *args, **kwargs ) Light.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'Attenuation', pm.Vec3, SL.getAttenuation, SL.setAttenuation ), Attr( 'Exponent', float, SL.getExponent, SL.setExponent ), Attr( 'Specular Color', pm.Vec4, SL.getSpecularColor, SL.setSpecularColor ), Attr( 'Shadow Caster', bool, SL.isShadowCaster, SL.setShadowCaster ), parent='Spotlight' )
def __init__( self, *args, **kwargs ): kwargs['nType'] = PL Light.__init__( self, *args, **kwargs ) pAttr = Attr( 'PointLight' ) pAttr.children.extend( [ Attr( 'Attenuation', pm.Vec3, PL.getAttenuation, PL.setAttenuation ), Attr( 'Point', pm.Point3, PL.getPoint, PL.setPoint ), Attr( 'Specular Color', pm.Vec4, PL.getSpecularColor, PL.setSpecularColor ) ] ) self.attributes.append( pAttr )
def __init__( self, *args, **kwargs ): kwargs['nType'] = DL Light.__init__( self, *args, **kwargs ) pAttr = Attr( 'DirectionalLight' ) pAttr.children.extend( [ Attr( 'Direction', pm.Vec3, DL.getDirection, DL.setDirection ), Attr( 'Point',pm.Point3, DL.getPoint, DL.setPoint ), Attr( 'Specular Color', pm.Vec4, DL.getSpecularColor, DL.setSpecularColor ), Attr( 'Shadow Caster', bool, DL.isShadowCaster, DL.setShadowCaster ) ] ) self.attributes.append( pAttr )
def __init__( self, *args, **kwargs ): kwargs['nType'] = SL LensNode.__init__( self, *args, **kwargs ) Light.__init__( self, *args, **kwargs ) pAttr = Attr( 'PointLight' ) pAttr.children.extend( [ Attr( 'Attenuation', pm.Vec3, SL.getAttenuation, SL.setAttenuation ), Attr( 'Exponent', float, SL.getExponent, SL.setExponent ), Attr( 'Specular Color', pm.Vec4, SL.getSpecularColor, SL.setSpecularColor ), Attr( 'Shadow Caster', bool, SL.isShadowCaster, SL.setShadowCaster ) ] ) self.attributes.append( pAttr )
def __init__(self, name, adr): Light.__init__(self, name, adr)
def __init__(self): Light.__init__(self) self.phase = 0 # in general, this is complex
def __init__(self): Light.__init__(self) self.stokes_vector = numpy.array([1, 0, 0, 0]) # (I, M, C, S) un-polarized state self.stokes_vector.shape = (4, 1) # ensure it's a column vector
def __init__(self, gpio, device_id): Light.__init__(self, gpio, device_id)
def __init__( self, *args, **kwargs ): kwargs['nType'] = pm.AmbientLight Light.__init__( self, *args, **kwargs )