index.vwf.yaml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. assets: "assets.json"
  7. children:
  8. fog:
  9. extends: http://vwf.example.com/aframe/aSceneFogComponent.vwf
  10. type: "component"
  11. properties:
  12. fogType: "linear"
  13. fogColor: "#ECECEC"
  14. far: 20
  15. near: 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. myLight:
  30. extends: http://vwf.example.com/aframe/alight.vwf
  31. properties:
  32. type: "point"
  33. color: "white"
  34. position: "0 3 0"
  35. rotation: "0 0 0"
  36. sky:
  37. extends: http://vwf.example.com/aframe/asky.vwf
  38. properties:
  39. children:
  40. material:
  41. extends: http://vwf.example.com/aframe/aMaterialComponent.vwf
  42. properties:
  43. color: "#ECECEC"
  44. src: "#sky"
  45. fog: false
  46. side: "back"
  47. spaceText:
  48. extends: http://vwf.example.com/aframe/atext.vwf
  49. properties:
  50. value: "Paint App"
  51. color: "white"
  52. position: "-2 2.5 -2"
  53. box:
  54. extends: http://vwf.example.com/aframe/abox.vwf
  55. properties:
  56. position: "0 0 -3"
  57. rotation: "0 0 0"
  58. depth: 3
  59. height: 0.2
  60. width: 3
  61. myProperty:
  62. set: |
  63. if ( value == "fancy" ) {
  64. this.myProperty = value + " coding!";
  65. } else {
  66. this.myProperty = value;
  67. }
  68. get: |
  69. return this.myProperty;
  70. value: "fancy"
  71. children:
  72. material:
  73. extends: http://vwf.example.com/aframe/aMaterialComponent.vwf
  74. properties:
  75. color: "#3c7249"
  76. drawBox:
  77. extends: http://vwf.example.com/aframe/aentity.vwf
  78. properties:
  79. position: "0 0 0"
  80. defaultXRCostume:
  81. extends: http://vwf.example.com/aframe/abox.vwf
  82. properties:
  83. displayName: "defaultXRCostume"
  84. position: "0 0 0"
  85. height: 0.01
  86. width: 0.01
  87. depth: 0.3
  88. penDown: false
  89. penName: "drawNode"
  90. children:
  91. material:
  92. extends: http://vwf.example.com/aframe/aMaterialComponent.vwf
  93. type: "component"
  94. properties:
  95. color: "#6aa171"
  96. pointer:
  97. extends: http://vwf.example.com/aframe/abox.vwf
  98. properties:
  99. position: "0 0 -0.25"
  100. height: 0.05
  101. width: 0.05
  102. depth: 0.05
  103. children:
  104. material:
  105. extends: http://vwf.example.com/aframe/aMaterialComponent.vwf
  106. type: "component"
  107. properties:
  108. color: "green"
  109. methods:
  110. triggerdown:
  111. triggerup:
  112. onMove:
  113. scripts:
  114. - source: "controller.js"