Shader function in custommaterial

Is there a way to create a shader function to use in custommaterial?

I guess I should’ve searched the playground before posting here. I found this PG on my first search that shows how to do it:

https://www.babylonjs-playground.com/#064AUB#1

3 Likes