相机默认裁剪模式: DEFAULT_CULLING = VIEW_FRUSTUM_SIDES_CULLING|
SMALL_FEATURE_CULLING|
SHADOW_OCCLUSION_CULLING|
CLUSTER_CULLING
由于存在SMALL_FEATURE_CULLING 因此一个Geode里面只有一个点的时候,默认情况下是看不见的,去除该值
- osg::CullStack::CullingMode cullingMode = viewer.getCamera()->getCullingMode();
- cullingMode &= ~(osg::CullStack::SMALL_FEATURE_CULLING);
- viewer.getCamera()->setCullingMode( cullingMode );