index.vwf.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # A-Frame & VWF simple scene
  2. # Copyright 2017 Krestianstvo.org project
  3. ---
  4. extends: http://vwf.example.com/aframe/ascene.vwf
  5. properties:
  6. fog: "type: linear; color: #ECECEC; far: 20; near: 0"
  7. assets: "assets.json"
  8. children:
  9. myLight:
  10. extends: http://vwf.example.com/aframe/alight.vwf
  11. properties:
  12. type: "point"
  13. color: "white"
  14. position: "0 10 5"
  15. rotation: "0 0 0"
  16. groundPlane:
  17. extends: http://vwf.example.com/aframe/aplane.vwf
  18. properties:
  19. height: 50
  20. width: 50
  21. rotation: [-90, 0, 0]
  22. children:
  23. material:
  24. extends: http://vwf.example.com/aframe/aMaterialComponent.vwf
  25. properties:
  26. wireframe: false
  27. src: "#bg2"
  28. repeat: "10 10"
  29. spaceText:
  30. extends: http://vwf.example.com/aframe/atext.vwf
  31. properties:
  32. value: "Virtual World Framework & VR Controllers"
  33. color: "#2b5d83"
  34. position: [-2, 2.5, -3]
  35. cube:
  36. extends: http://vwf.example.com/aframe/abox.vwf
  37. properties:
  38. position: "0 1 -3"
  39. rotation: "0 0 0"
  40. depth: 1
  41. height: 1
  42. width: 1
  43. class: "gearvrhit"
  44. children:
  45. material:
  46. extends: http://vwf.example.com/aframe/aMaterialComponent.vwf
  47. properties:
  48. color: "#3c7249"
  49. aabb-collider-listener:
  50. extends: http://vwf.example.com/aframe/app-aabb-collider-listener-component.vwf
  51. type: "component"
  52. methods:
  53. hitstartEventMethod:
  54. body: |
  55. this.material.opacity = 0.7
  56. hitendEventMethod:
  57. body: |
  58. this.material.opacity = 1.0
  59. newSky:
  60. extends: http://vwf.example.com/aframe/aentity.vwf
  61. children:
  62. skyshader:
  63. extends: http://vwf.example.com/aframe/app-skyshader-component.vwf