Hello!
First of all, kudos on the impressive work!
osgjs brings the advantages of osg's clean and flexible API using idiomatic javascript, it's a real pleasure to use!
Now for my question: I'm looking for a way to render generated meshes as wireframe, for debugging purpose.
With osg, I would use something like this:
osg::PolygonMode * polygonMode = new osg::PolygonMode;
polygonMode->setMode( osg::PolygonMode::FRONT_AND_BACK, osg::PolygonMode::LINE );
However in WebGL, you can't control the polygon mode. I was wondering if osgjs provided a clean alternative to that.
I came across this
paper describing how to perform shader-based wireframe drawing. Is there something like this available in osgjs?
If not, is there any existing plan to do add such functionality?
I'm willing to contribute this feature if there are no plans already, since I very much need it, and I'm pretty sure it could be useful to many people besides me.
I'm still very new to osgjs, so I might need some directions on how to integrate this in an elegant way.
Thanks.
Adrien