-- To learn how you can include your own video, see the wiki 
-- http://wiki.openspaceproject.com/docs/builders/assets/resources.html

local Sphere = {
  Identifier = "ExampleVideoOnSphere",
  Renderable = {
    Type = "RenderableVideoSphere",
    Size = 100.0,
    Segments = 80,
    Video = asset.localResource("examplevideo.mp4"),
    Orientation = "Both"
  },
  GUI = {
    Name = "Video Sphere Example",
    Path = "/Other/Spheres"
  }
}


asset.onInitialize(function()
    openspace.addSceneGraphNode(Sphere)
end)

asset.onDeinitialize(function()
  openspace.removeSceneGraphNode(Sphere)
end)

asset.export(Sphere)



asset.meta = {
  Name = "Video Player on Sphere",
  Version = "1.0",
  Description = "An example asset that shows how to include a video on a sphere",
  Author = "OpenSpace Team",
  URL = "https://openspaceproject.com",
  License = "MIT"
}
