[osg-users] pragmatic shaders changes?
OpenSceneGraph Users
osg-users at lists.openscenegraph.org
Wed May 20 13:41:01 PDT 2020
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
--
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/CAO-%2Bzi%3Dcbjc60AgAoBsOiHRODCjVK3MvMmdYrff5Yq8u37Ze2w%40mail.gmail.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200520/552534b8/attachment.html>
More information about the osg-users
mailing list