import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Test from '../views/Test.vue'
import TextureViewer from '../views/TextureViewer.vue'
import MaterialViewer from '../views/MaterialViewer.vue'
import PostEffectViewer from '../views/PostEffectViewer.vue'
import RTTest from '../views/RTTest.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/test',
    name: 'Test',
    component: Test
  },
  {
    path: '/textures',
    name: 'TextureViewer',
    component: TextureViewer
  },
  {
    path: '/materials',
    name: 'MaterialViewer',
    component: MaterialViewer
  },
  {
    path: '/posts',
    name: 'PostEffectViewer',
    component: PostEffectViewer
  },
  {
    path:'/rttest',
    name:'RTTest',
    component: RTTest
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
