<div dir="ltr"><div dir="ltr"><div>Hi Community, Robert,</div><div><br></div><div>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:</div><div><br></div><div>in the shader:</div><div>#pragma import_defines (MY_DEFINE) </div><div><br></div><div>#ifdef (MY_DEFINE)</div><div>....</div><div>#endif</div><div><br></div><div>in the code:</div><div>node->getOrCreateStateSet()->setDefine("MY_DEFINE");</div><div><br></div><div>This was working for years, now it doesn't. Was this changed over the past few versions?</div><div><br></div><div>Thanks a bunch as always!</div><div><br></div><div>Cheers,</div><div>Nick</div><br>-- <br><div class="gmail_signature" dir="ltr">trajce nikolov nick<br></div></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/CAO-%2Bzi%3Dcbjc60AgAoBsOiHRODCjVK3MvMmdYrff5Yq8u37Ze2w%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/CAO-%2Bzi%3Dcbjc60AgAoBsOiHRODCjVK3MvMmdYrff5Yq8u37Ze2w%40mail.gmail.com</a>.<br />