diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2011-01-19 01:27:18 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2011-01-19 01:27:18 +0300 |
commit | eff0e29cbae095baae26fc650baed36ff0573f50 (patch) | |
tree | bfd229a93cc3ee39db4d40ebac5621404049a52d /source/gameengine/Ketsji/KX_WorldInfo.h | |
parent | 3b0c2accc66a2366905a617a280fa79711e8d276 (diff) |
BGE BugFix [#25711]render.setBackgroundColor() does not work:
Since rev.2 (hans ftw) we have a strange situation where horizon color was being used at Convert time for the WorldInfo background color (and for the fog). However through the Python API only the Rasterizer background color was being updated. On top of that the KX_KetsjiEngine.cpp::SetBackGround was using the WorldInfo bgcolor when render mode was the potato one (TEXTURED). Bottomline, when in potato mode the glClearColor used was the original one in worldinfo, not the API updated one in Rasterized.
Diffstat (limited to 'source/gameengine/Ketsji/KX_WorldInfo.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_WorldInfo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_WorldInfo.h b/source/gameengine/Ketsji/KX_WorldInfo.h index 3b3d52f91f7..fb730c5502f 100644 --- a/source/gameengine/Ketsji/KX_WorldInfo.h +++ b/source/gameengine/Ketsji/KX_WorldInfo.h @@ -58,6 +58,7 @@ public: virtual float getAmbientColorGreen()=0; virtual float getAmbientColorBlue()=0; + virtual void setBackColor(float,float,float)=0; virtual void setMistStart(float)=0; virtual void setMistDistance(float)=0; virtual void setMistColorRed(float)=0; |