mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-09-12 21:38:18 +00:00
allow to set color of deformables for debug visualizer
don't render deformables for TinyRenderer/EGL if p.configureDebugVisualizer(p.COV_ENABLE_TINY_RENDERER,0) Fix segmentation mask in tinyrenderer for deformables
This commit is contained in:
@@ -937,7 +937,7 @@ int TinyRendererVisualShapeConverter::registerShapeAndInstance(const float* vert
|
||||
}
|
||||
if (numvertices && numIndices)
|
||||
{
|
||||
TinyRenderObjectData* tinyObj = new TinyRenderObjectData(m_data->m_rgbColorBuffer, m_data->m_depthBuffer, &m_data->m_shadowBuffer, &m_data->m_segmentationMaskBuffer, -1, -1);
|
||||
TinyRenderObjectData* tinyObj = new TinyRenderObjectData(m_data->m_rgbColorBuffer, m_data->m_depthBuffer, &m_data->m_shadowBuffer, &m_data->m_segmentationMaskBuffer, bodyUniqueId, linkIndex);
|
||||
//those are primary soft bodies, possibly cloth, make them double-sided by default
|
||||
tinyObj->m_doubleSided = true;
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user