Using existing opengl texture with scenekit

后端 未结 2 624
梦毁少年i
梦毁少年i 2020-12-31 23:55

According to Apple\'s documentation you can use NSColor, NSImage and CALayer to provide a texture to a SCNMaterialProperty. SCNMaterialProperty

I am however wonderin

2条回答
  •  悲&欢浪女
    2021-01-01 00:36

    if you need to directly deal with OpenGL and bind your custom textures then SCNProgram or SCNNode's delegate are the ways to go (MountainLion or greater). If you have an Apple developer account you will find a sample code here: http://developer.apple.com/downloads/ under "WWDC 2013 Sample Code". Look for "OS_X_SceneKit_Slides_WWDC2013"

提交回复
热议问题