mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-11-11 10:25:50 +00:00
Add pybullet.configureDebugVisualizer(rgbBackground=[red,green,blue]) (each component a float in the range [0,1])
This is an alternative to passing options="--background_color_red=red --background_color_green=green --background_color_blue=blue" in the connect method.
This commit is contained in:
@@ -11305,6 +11305,10 @@ bool PhysicsServerCommandProcessor::processConfigureOpenGLVisualizerCommand(cons
|
||||
{
|
||||
m_data->m_guiHelper->getRenderInterface()->setLightPosition(clientCmd.m_configureOpenGLVisualizerArguments.m_lightPosition);
|
||||
}
|
||||
if (clientCmd.m_updateFlags & COV_SET_RGB_BACKGROUND)
|
||||
{
|
||||
m_data->m_guiHelper->setBackgroundColor(clientCmd.m_configureOpenGLVisualizerArguments.m_rgbBackground);
|
||||
}
|
||||
if (clientCmd.m_updateFlags & COV_SET_SHADOWMAP_RESOLUTION)
|
||||
{
|
||||
m_data->m_guiHelper->getRenderInterface()->setShadowMapResolution(clientCmd.m_configureOpenGLVisualizerArguments.m_shadowMapResolution);
|
||||
|
||||
Reference in New Issue
Block a user