Пример #1
0
    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')
Пример #2
0
 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'
     )
Пример #3
0
 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'
     )
Пример #4
0
    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')
Пример #5
0
 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'
     )
Пример #6
0
 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 )
Пример #8
0
 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 )
Пример #9
0
 def __init__(self, name, adr):
     Light.__init__(self, name, adr)
Пример #10
0
	def __init__(self, name, adr):
		Light.__init__(self, name, adr)
Пример #11
0
    def __init__(self):

        Light.__init__(self)

        self.phase = 0  # in general, this is complex
Пример #12
0
    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
Пример #13
0
 def __init__(self, gpio, device_id):
     Light.__init__(self, gpio, device_id)
Пример #14
0
 def __init__( self, *args, **kwargs ):
     kwargs['nType'] = pm.AmbientLight
     Light.__init__( self, *args, **kwargs )