Using MPMoviePlayerController as texture in SceneKit

前端 未结 2 1407
轻奢々
轻奢々 2020-12-21 14:50

I created a cube in scenekit and tried to use an instance of an MPMoviePlayerController as its material. It kind-ish works but not exactly well: the video seems to be very j

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-21 15:17

    In recent versions of SceneKit you can directly set an AVPlayer as the contents of a SCNMaterialProperty instance.

提交回复
热议问题