Skip to main content
Participating Frequently
March 30, 2023
Answered

Is there any way to import / include custom glsl library files with the shader api?

  • March 30, 2023
  • 1 reply
  • 1342 views

I have been looking through https://substance3d.adobe.com/documentation/spdoc/shader-api-89686018.html but can't see any way to do this.

 

I have a number of custom shaders that all re-use a lot of functionality. This means that if I find a bug or want to update one function, I need to update all my other shaders too.

Is there a way to just create a 'library' of my own and import that? Currently it looks like the only files we can import are the ones that come with substance. 

Is there a way to get this working without having to maintain around a dozen files containing many of the same custom functions?

If not - is there any plan to allow for importing our own library files?

Thanks!

 

 

PS:

The docs do say "Please note that you can't edit it nor create your own at the moment."

but they've said that for a long time so I'm not sure if anything has happened on that front since the last time the docs were updated.

On that note - the docs do seem a little out of date as they still say you can get shaders on Substance Share and give a dead link: https://share.allegorithmic.com/libraries?by_category_type_id=6

This topic has been closed for replies.
Correct answer Cyril Dellenbach

Hello @JP29105345vttt,

 

Even if this feature would interest us, the documentation is right on this one and this is currently not possible. But let me consider your message as a suggestion for the team.

 

Thank you for reporting the deadlink and best regards,

 

1 reply

Cyril Dellenbach
Community Manager
Cyril DellenbachCommunity ManagerCorrect answer
Community Manager
March 31, 2023

Hello @JP29105345vttt,

 

Even if this feature would interest us, the documentation is right on this one and this is currently not possible. But let me consider your message as a suggestion for the team.

 

Thank you for reporting the deadlink and best regards,

 

Cyril Dellenbach (Micro) | QA Support Artist | Adobe
Participating Frequently
March 31, 2023

Thanks Cyril!

It would be a huge help as I wouldn't need to maintain the shaders for game + substance 🙂

Is there an official "feature request" section I can add this to?

 

Thanks again for your help on the past few posts 🙂

Cyril Dellenbach
Community Manager
Community Manager
April 3, 2023

Unfortunately, we currently don't have any section entirely dedicated to feature requests, but we obviously write, keep and discuss about the users requests during dedicated talks. Don't worry, I've already added your request in our documents and to be honest, this specific subject was already on the table.

 

Have a nice day.

 

Cyril Dellenbach (Micro) | QA Support Artist | Adobe