Ability to supply custom shader/material to shapes

Avatar
  • updated
  • Currently out of scope

This would greatly expand the types of visuals that could be created with Shapes. I know all the shaders are generated for each shape so I'm not sure how viable this would be to implement. But it'd be cool to have the option to apply shaders like this to our shapes:

Reporting a bug? please specify Unity version:
Reporting a bug? please specify Shapes version:
Reporting a bug? please specify Render Pipeline:
Pinned replies
Avatar
Freya Holmér
  • Answer
  • Currently out of scope
Quote from julien Grifdail

I'm adding to this post by adding a specific use case. 
I just want to be able to support "ambiant light color" to shapes. 

I could replace all shapes with mesh and custom material but it wouldn't be as convenient as using Shapes. 

right now adding lighting support (and custom shaders) is out of scope for Shapes, but if you want to do something that affect the final color of all shapes, then if you know a little bit of shader coding, you can go to line 40 in shapes.cginc

ShapesOutput is the final function before outputting the color, if you add ambient light there, all shapes will get ambient light

Avatar
Freya Holmér
  • Under Consideration

making custom shaders for Shapes is generally pretty difficult, but it might be good to at the very least be able to assign what shaders it'll be using

this also gets complicated due to render pipelines though, but, I'll consider it!

Avatar
julien Grifdail

I'm adding to this post by adding a specific use case. 
I just want to be able to support "ambiant light color" to shapes. 

I could replace all shapes with mesh and custom material but it wouldn't be as convenient as using Shapes. 

Avatar
Freya Holmér
  • Answer
  • Currently out of scope
Quote from julien Grifdail

I'm adding to this post by adding a specific use case. 
I just want to be able to support "ambiant light color" to shapes. 

I could replace all shapes with mesh and custom material but it wouldn't be as convenient as using Shapes. 

right now adding lighting support (and custom shaders) is out of scope for Shapes, but if you want to do something that affect the final color of all shapes, then if you know a little bit of shader coding, you can go to line 40 in shapes.cginc

ShapesOutput is the final function before outputting the color, if you add ambient light there, all shapes will get ambient light