我想在 Unity 的运行时创建着色器。有什么办法吗?我发现文章在 Unity3D 的运行时创建 GLSL 着色器,
但这不再有效,因为 Unity 不接受
new Material({shader_code_here});
它需要new Material(Shader.Find("{Shader name in project}");
任何帮助表示赞赏,谢谢。
我想在 Unity 的运行时创建着色器。有什么办法吗?我发现文章在 Unity3D 的运行时创建 GLSL 着色器,
但这不再有效,因为 Unity 不接受
new Material({shader_code_here});
它需要new Material(Shader.Find("{Shader name in project}");
任何帮助表示赞赏,谢谢。