add virtual phone

This commit is contained in:
2026-01-03 17:26:08 +01:00
parent 655c38ef45
commit f38cfaf677
12 changed files with 246 additions and 246 deletions

View File

@@ -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);
});
}