LibGDX assigning a specific shader to a ModelInstance
问题 I have recently been learning an implementing my own shaders in libgdx. So far I did this with a custom shader provider, which chooses between a few shaders based on the userdata value of the object; public class MyShaderProvider extends DefaultShaderProvider { public final DefaultShader.Config config; final static String logstag = "ME.MyShaderProvider"; //known shaders static public enum shadertypes { prettynoise, invert, standardlibgdx, noise, distancefield, conceptbeam } public