public ImGuiRendererMesh(ShaderResourcesAsset resources, TextureManager texManager) { _shader = resources.shaders.mesh; _texManager = texManager; _texID = Shader.PropertyToID(resources.propertyNames.tex); }
public static IImGuiRenderer Create(RenderType type, ShaderResourcesAsset shaders, TextureManager textures) { Assert.IsNotNull(shaders, "Shaders not assigned."); switch (type) { case RenderType.Mesh: return(new ImGuiRendererMesh(shaders, textures)); case RenderType.Procedural: return(new ImGuiRendererProcedural(shaders, textures)); default: return(null); } }