I wonder if it is possible to query jit.gl.material on its textures. I want to create a little tool that allows me to copy the jit.gl.material's properties to the internal material of a drawgroup inside a jit.gl.model. sending "getdiffuse_texture" to jit.gl.material gives me an error.
the material editor is using lua to do something similar, but with the lack of lua documentation this code looks wizardly, besides it seems to copy the stored texture into a matrix in order to display it. but I would like to have the texture reference.
the problem could be easily solved if it was possible to reference a complete jit.gl.material to a drawgroup, but I havent found any hint's for this, eventhough the "getmaterial_dict $1" gives me a dict that looks awfully similar to the content of jit.gl.material.