Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Bernal <jbernalmartinez@gmail.com>2015-05-10 01:54:06 +0300
committerJorge Bernal <jbernalmartinez@gmail.com>2015-05-10 01:56:51 +0300
commitdc95ca92ca224d26423c5d63b33e7714a6a8c9ce (patch)
treec71096c7c22e2eca609458fa36e0bd397f5c2976 /source/gameengine/Ketsji/KX_WorldInfo.cpp
parent583fd3af659fc5526a150d30b6a7a5bc2f0d484f (diff)
BGE: Fix T43822 Videotexture does not use sky color for off-screen
rendering Make scene background color as default for render-to-texture instead of current blue color (0, 0, 255). It is very useful for mirrors setups. Reviewers: moguri, ben2610, sybren, panzergame, hg1 Reviewed By: panzergame, hg1, moguri Subscribers: mpan3 Differential Revision: https://developer.blender.org/D1287
Diffstat (limited to 'source/gameengine/Ketsji/KX_WorldInfo.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_WorldInfo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_WorldInfo.cpp b/source/gameengine/Ketsji/KX_WorldInfo.cpp
index e4bf439501f..21e72504a2b 100644
--- a/source/gameengine/Ketsji/KX_WorldInfo.cpp
+++ b/source/gameengine/Ketsji/KX_WorldInfo.cpp
@@ -100,6 +100,11 @@ void KX_WorldInfo::setBackColor(float r, float g, float b)
}
}
+const float *KX_WorldInfo::getBackColor(void) const
+{
+ return m_backgroundcolor;
+}
+
void KX_WorldInfo::setMistType(short type)
{
m_misttype = type;