- Home /
How to use opengles texture in IUnityXRDisplay?
Hi,all I want to develop a display XR subsystem ,and run sample downloaded from link text correctly.
But get black screen when change code from uDesc.color.nativePtr = (void*)kUnityXRRenderTextureIdDontCare;
into GLuint mTexId; glGenTextures(1, &mTexId); glBindTexture(GL_TEXTURE_2D, mTexId); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, texWidth, texHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); glBindTexture(GL_TEXTURE_2D, 0); uDesc.color.nativePtr = (void*)(&mTexId);
So how to use opengles texture in Unity display subsystem?
,
Your answer
Follow this Question
Related Questions
android time cheat plugin problem with broadcastreceiver 1 Answer
What is way to go to implement leaderboards/achievements for solo developer? 0 Answers
How to get pixels from an external texture? 1 Answer
NativePlugin c++ Android sample and self build pcl not loading,Native Plugins c++ "dll not found" 2 Answers
Native plugin JNI_OnLoad/UnitySetGraphicsDevice not called when using IL2CPP on Android 0 Answers