我正在开发Android插件,它应该从Java代码本身在OpenGL中加载纹理。我知道整个OpenGL上下文很棘手。这是Java代码: public static int Load(byte[] textureData)
{
final int[] textureHandle = new int[1];
GLES30.glGenTextures(1, text
我试图加载一个纹理,我编码到一个jpeg,然后序列化/发送为一个字节数组从客户端到我的服务器,然后反序列化和应用纹理一个实例化的预制件。除了最后我试图将纹理应用于我的预制件时,一切似乎都在起作用。我发现了错误: UnityException: Texture 'deer' is not readable, the texture memory can not be accessed from sc