Custom shader/material editor

Would be very useful to support custom shader in the material asset.

The Shading selection could also have a “Custom” value.
This would require two GLSL files (vertex and fragment shaders) and one script so to expose custom properties and to implement the initialize and update methods as needed.

By doing this would be much easier to assign the same material to multiple entities, and also avoiding to allocate a new shader and a new material for each entity (see Lag using custom shader)

What do you think?

1 Like

I think it’d be useful, we also need to take into account the existing Shader Chunks system which allows you to modify parts of the existing standard material.