osgjs
osgjs copied to clipboard
Useless (unused) shader compiler
When we create a viewer, when the run()
function is called, it creates a shader without material, triggered by
https://github.com/cedricpinson/osgjs/blob/develop/sources/osgViewer/Renderer.js#L193
The shader is not send to the cg and is not used, so it's not really a problem but maybe we can prevent the useless code execution
if we comment the state.apply() from https://github.com/cedricpinson/osgjs/issues/399, it works