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

local ScreenSpace = {
  Identifier = "ScreenSpaceVideoExample",
  Type = "ScreenSpaceVideo",
  Name = "Screen Space Video Example",
  Video = asset.localResource("examplevideo.mp4")
}


asset.onInitialize(function()
  openspace.addScreenSpaceRenderable(ScreenSpace)
end)

asset.onDeinitialize(function()
  openspace.removeScreenSpaceRenderable(ScreenSpace)
end)

asset.export(ScreenSpace)



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