Replacing / adding attributes / buffers after running vsgconv on an .ive #1124
-
Hello, What is the proper way to do something like this? I use vsgconv to convert an .ive to .vsgb. The .vsgb model will now have everything I need, but I need to swap out the shaders and add a light. I can swap out the shaders using I want to have the light UBO accessable to all shaders that bind to the UBO. I've tried different methods up to this point, based on some of the examples (vsglights, vsgclip, etc) and from what I have read in the discussions, but I can never access the light data from my shader. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Right now osg2vsg doesn't generated shaders set up that utilizes the modern VSG features like vsg::ViewDependentState and the various ShaderSet that support lighting, shadows etc. What is required is a rewrite of osg2vsg to use the modern VSG features so that when OSG files are converted to VSG they are already in a form that leverages all the modern features. |
Beta Was this translation helpful? Give feedback.
Right now osg2vsg doesn't generated shaders set up that utilizes the modern VSG features like vsg::ViewDependentState and the various ShaderSet that support lighting, shadows etc.
What is required is a rewrite of osg2vsg to use the modern VSG features so that when OSG files are converted to VSG they are already in a form that leverages all the modern features.