3D model is always behind the layer

Hi

I am facing a strange issue, 3d model is always drawing behind the layer. whatever z value i set for the 3d model it always go behind the background layer.
Here is code:

auto bgLayer = LayerColor::create(Color4B(255, 0, 0, 255));
addChild( bgLayer );

auto coco = Sprite3D::create("coconut.c3b", "coco.png");
coco->setPosition( VisibleRect::center() );
addChild( coco );
coco->setRotation3D(Vec3(90,0,180));
coco->runAction(RepeatForever::create(RotateBy::create(0.8f,Vec3(0,360,0))));

Its is displaying red screen only, without bgLayer model is displaying properly.

with bgLayer

without bgLayer

semi transparent layer

I am using cocos2d-x version 3.6

Thanks