#How To Call Custom Conversion Function of shader from c# script

1 messages · Page 1 of 1 (latest)

weak snow
#

i'm working on an editor tool
context: liltoon/Poiyomi are downloadable shaders used in the vtuber/vrchat sphere
not every file format supports them tho and that is why they have a built in convert to VRM MToon which is another shared widely supported inside and outside of unity aswell, each has their own process to do so

now the problem is how can i access that function being it's a shader to run automation that batch converts them into mtoon? each model can have 5-10 materials and is a tedious process to perform by hand and is why the goal to have automation

#

How To Call Custom Conversion Function of shader from c# script

ornate comet
weak snow
#

i can find the reverse of how to call c# from a shader
but not shader code from c#

ornate comet
#

The process to call it should be clear from reading the source code. I can't answer that without knowing the context.

#

You can't call shader code from C#. Nor vice versa.