Custom Shaders

I've had a look around but can't seem to find an answer to this.

Is there any way of using custom shaders with a model?

Thanks

Dan

Hello Dan,

I believe any shaders your model uses should be built into the glTF used to create the model.

-Hannah

So suppose I want to bind a slider on my UI to a uniform in a model shader, how do I query the model to set the binding?

We don’t have great support for that kind of functionality yet. It’s on our roadmap to make it easier.

For now, you can try using ModelMaterial.setValue

You can get the ModelMaterial for a model using Model.getMaterial

-Hannah