diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-06-07 15:01:31 +0400 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-06-07 15:01:31 +0400 |
commit | b468bf726c50d3126fac2664164e1be0d6e209c5 (patch) | |
tree | 777c7beb1094a652dd75548904abeb6f39073a00 /source/gameengine/Ketsji | |
parent | 7d840a256e0094c159b2fc60bc3395b79f29e0cf (diff) |
Lighting updates:
Added specular after texture.
Added Light properties: Negative, No Diffuse, No Specular, Quad, Quad2
Diffstat (limited to 'source/gameengine/Ketsji')
-rw-r--r-- | source/gameengine/Ketsji/KX_Light.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_Light.cpp b/source/gameengine/Ketsji/KX_Light.cpp index 9be4256f58f..f5ec21ee1b8 100644 --- a/source/gameengine/Ketsji/KX_Light.cpp +++ b/source/gameengine/Ketsji/KX_Light.cpp @@ -98,6 +98,9 @@ PyObject* KX_LightObject::_getattr(const STR_String& attr) if (attr == "lin_attenuation") return PyFloat_FromDouble(m_lightobj.m_att1); + if (attr == "quad_attenuation") + return PyFloat_FromDouble(m_lightobj.m_att2); + if (attr == "spotsize") return PyFloat_FromDouble(m_lightobj.m_spotsize); @@ -165,6 +168,12 @@ int KX_LightObject::_setattr(const STR_String& attr, PyObject *pyvalue) return 0; } + if (attr == "quad_attenuation") + { + m_lightobj.m_att2 = value; + return 0; + } + if (attr == "spotsize") { m_lightobj.m_spotsize = value; |