material.vwf.yaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. # Copyright 2012 United States Government, as represented by the Secretary of Defense, Under
  2. # Secretary of Defense (Personnel & Readiness).
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  5. # in compliance with the License. You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software distributed under the License
  10. # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  11. # or implied. See the License for the specific language governing permissions and limitations under
  12. # the License.
  13. ## The component representation of a material
  14. ##
  15. ## @name material.vwf
  16. ## @namespace
  17. ---
  18. extends: http://vwf.example.com/node.vwf
  19. properties:
  20. ## Texture
  21. ##
  22. ## @name material.vwf#texture
  23. ## @property
  24. texture:
  25. set: |
  26. this.texture = value;
  27. ## Color
  28. ##
  29. ## @name material.vwf#color
  30. ## @property
  31. color:
  32. set: |
  33. this.color = value;
  34. ## Specular color
  35. ##
  36. ## @name material.vwf#specColor
  37. ## @property
  38. specColor:
  39. set: |
  40. this.specColor = value;
  41. ## Reflective value
  42. ##
  43. ## @name material.vwf#reflect
  44. ## @property
  45. reflect:
  46. set: |
  47. this.reflect = value;
  48. ## Shininess value
  49. ##
  50. ## @name material.vwf#shininess
  51. ## @property
  52. shininess:
  53. set: |
  54. this.shininess = value;
  55. ## Specular value
  56. ##
  57. ## @name material.vwf#specular
  58. ## @property
  59. specular:
  60. set: |
  61. this.specular = value;
  62. ## Emit
  63. ##
  64. ## @name material.vwf#emit
  65. ## @property
  66. emit:
  67. set: |
  68. this.emit = value;
  69. ## Alpha value
  70. ##
  71. ## @name material.vwf#alpha
  72. ## @property
  73. alpha:
  74. set: |
  75. this.alpha = value;
  76. ## Ambient value
  77. ##
  78. ## @name material.vwf#ambient
  79. ## @property
  80. ambient:
  81. set: |
  82. this.ambient = value;
  83. ## Binary alpha
  84. ##
  85. ## @name material.vwf#binaryAlpha
  86. ## @property
  87. binaryAlpha:
  88. set: |
  89. this.binaryAlpha = value;
  90. ## Bump scale
  91. ##
  92. ## @name material.vwf#bumpScale
  93. ## @property
  94. bumpScale:
  95. set: |
  96. this.bumpScale = value;
  97. ## Transparent
  98. ##
  99. ## @name material.vwf#transparent
  100. ## @property
  101. transparent:
  102. set: |
  103. this.transparent = value;
  104. ## opacity
  105. ##
  106. ## @name material.vwf#opacity
  107. ## @property
  108. opacity:
  109. set: |
  110. this.opacity = value;
  111. ## alphaTest
  112. ##
  113. ## @name material.vwf#alphaTest
  114. ## @property
  115. alphaTest:
  116. set: |
  117. this.alphaTest = value;
  118. ## side
  119. ##
  120. ## @name material.vwf#side
  121. ## @property
  122. side:
  123. set: |
  124. if ( value === "front" || value === "back" || value === "double" ) {
  125. this.side = value;
  126. }
  127. value: front