我正在開發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