vsg-dev / osg2vsg

Adapter library for converting OpenSceneGraph Images and 3D models to VulkanSceneGraph
MIT License
43 stars 15 forks source link

Support to load custom vert and frag program with --vert and --frag arguments #23

Closed tomhog closed 5 years ago

tomhog commented 5 years ago

Also support #pragma import_defines, so now we use the shader mode mask to generate a list of defines then compare them to the import defines, then only add the defines that are requested and in the import defines list.

Added text versions of the fbxshader to data/shaders folder. If ypu pass a cutom shader with the args --vert, --frag you need to pass the full path, it's not using findFile or anything like that.