Auto Gen Shaders and Material does not generate CAP_ROUND and CAP_SQUARE materials

Avatar
  • updated
  • Not a bug
Reporting a bug? please specify Unity version:
Reporting a bug? please specify Shapes version:
Shapes 1.1.1
Reporting a bug? please specify Render Pipeline:
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  • Not a bug

currently, extending the shaders and whatnot isn't designed to be easy or supported, you're kinda on your own extending Shapes or adding things to the source at the moment

this might change in the future! but right now it's way outside the scope of things I'll be adding ahead I'm afraid

Avatar
Freya Holmér creator
  • Answer
  • Not a bug

currently, extending the shaders and whatnot isn't designed to be easy or supported, you're kinda on your own extending Shapes or adding things to the source at the moment

this might change in the future! but right now it's way outside the scope of things I'll be adding ahead I'm afraid

Avatar
blake gross

Sorry I should have been more specific.

I created new core files in the Shaders/Core folder. I saw that all the shaders generated correctly, but the materials did not. Looking further into this it looks like this is because shader keyword generation is based on "shaderKeywords" in ShaderBuilder.

My shaders are called Line 2D Emissive and Line 3D Emissive. These are not picked up by the keyword matching because it looks for exact names ("Line 2D", "Line 3D")

My ask would be to make this more extensible so that custom shaders can take advantage of auto-gen shader keywords. 

Avatar
Freya Holmér creator
  • Under Review

it works on my end - do you have any more details on what exactly doesn't work?