Hi Community, Robert,
I am working with the latest from the trunk and I see older coder which uses #pragmatic shaders is no longer working as it should - and it was working ok just can not recall the OSG version. Here is how I use the #pragmatic shaders:
in the shader:
#pragma import_defines (MY_DEFINE)
#ifdef (MY_DEFINE)
....
#endif
in the code:
node->getOrCreateStateSet()->setDefine("MY_DEFINE");
This was working for years, now it doesn't. Was this changed over the past few versions?
Thanks a bunch as always!
Cheers,
Nick
--
trajce nikolov nick