• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Mar 30, 2023 Mar 30, 2023

Copy link to clipboard

Copied

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

TOPICS
Scripting

Views

602

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Mar 31, 2023 Mar 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,

 

Votes

Translate

Translate
Adobe Employee ,
Mar 31, 2023 Mar 31, 2023

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 31, 2023 Mar 31, 2023

Copy link to clipboard

Copied

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 🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 03, 2023 Apr 03, 2023

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 03, 2023 Apr 03, 2023

Copy link to clipboard

Copied

LATEST

Thanks again!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources