add virtual phone
This commit is contained in:
@@ -7,7 +7,6 @@ public class KotlinBridge : MonoBehaviour
|
||||
{
|
||||
static KotlinBridge Instance;
|
||||
Texture2D texture;
|
||||
[SerializeField] private Shader oesShader;
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
struct NativeCallbacks
|
||||
{
|
||||
@@ -65,7 +64,7 @@ public class KotlinBridge : MonoBehaviour
|
||||
UnityMainThreadDispatcher.Enqueue(() => {
|
||||
var renderer = Instance.GetComponent<Renderer>();
|
||||
//renderer.material = new Material(Instance.oesShader);
|
||||
renderer.material.mainTexture = Texture2D.CreateExternalTexture(1024, 1024,
|
||||
renderer.materials[2].mainTexture = Texture2D.CreateExternalTexture(1024, 1024,
|
||||
TextureFormat.RGBA32, false, false, (IntPtr)gl_texture);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user