diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2009-05-22 10:12:18 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2009-05-22 10:12:18 +0400 |
commit | ec60c74f081b006a6e8aebefe930a37aac95b865 (patch) | |
tree | bd56d584c9b3fab323ec50292e7c5f136e034465 /source/gameengine | |
parent | 612f3b326662498207e6e051feeceaac81e09343 (diff) |
Fix for: energy IPO not supported in glsl mode (reported in the forum).
in fact I redid part of the last "fix", making it working properly now.
Before we were changing Lamp->la . This is the Blender Lamp, we shouldn't touch it.
So this part of the code is correct now.
Things that could be tackled:
- color attribute is returning negative values when NEGATIVE is toggled
- objects with no material (default gray one) still don't support lamp spots (not spot lamp but the spot of the lamps)
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/Ketsji/KX_Light.cpp | 7 | ||||
-rw-r--r-- | source/gameengine/Ketsji/KX_Light.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/source/gameengine/Ketsji/KX_Light.cpp b/source/gameengine/Ketsji/KX_Light.cpp index 1496f34c5f2..fe575384a35 100644 --- a/source/gameengine/Ketsji/KX_Light.cpp +++ b/source/gameengine/Ketsji/KX_Light.cpp @@ -61,11 +61,6 @@ KX_LightObject::KX_LightObject(void* sgReplicationInfo,SG_Callbacks callbacks, m_rendertools->AddLight(&m_lightobj); m_glsl = glsl; m_blenderscene = ((KX_Scene*)sgReplicationInfo)->GetBlenderScene(); - - m_initialvalues[0] = lightobj.m_red; - m_initialvalues[1] = lightobj.m_green; - m_initialvalues[2] = lightobj.m_blue; - m_initialvalues[3] = lightobj.m_energy; }; @@ -76,8 +71,6 @@ KX_LightObject::~KX_LightObject() if((lamp = GetGPULamp())) { float obmat[4][4] = {{0}}; GPU_lamp_update(lamp, 0, obmat); - GPU_lamp_update_colors(lamp, m_initialvalues[0], m_initialvalues[1], - m_initialvalues[2], m_initialvalues[3]); } m_rendertools->RemoveLight(&m_lightobj); diff --git a/source/gameengine/Ketsji/KX_Light.h b/source/gameengine/Ketsji/KX_Light.h index 690231ff090..35f25515e3b 100644 --- a/source/gameengine/Ketsji/KX_Light.h +++ b/source/gameengine/Ketsji/KX_Light.h @@ -44,7 +44,6 @@ class KX_LightObject : public KX_GameObject Py_Header; protected: RAS_LightObject m_lightobj; - float m_initialvalues [4]; class RAS_IRenderTools* m_rendertools; //needed for registering and replication of lightobj bool m_glsl; Scene* m_blenderscene; |