MaterialEditorTest.materialtype 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {
  2. "description": "Just collects some dummy fields for testing the material editor.",
  3. "version": 1,
  4. "propertyLayout": {
  5. "groups": [
  6. {
  7. "id": "normal",
  8. "displayName": "Normal Settings",
  9. "description": "Properties for configuring the surface normals."
  10. },
  11. {
  12. "id": "diffuse",
  13. "displayName": "Diffuse Settings",
  14. "description": "Properties for configuring the surface diffuse."
  15. },
  16. {
  17. "id": "specular",
  18. "displayName": "Specular Settings",
  19. "description": "Properties for configuring the surface specular."
  20. }
  21. ],
  22. "properties": {
  23. "normal": [
  24. {
  25. "id": "myBool",
  26. "displayName": "My Bool",
  27. "description": "This is a tooltip for MyBool",
  28. "type": "bool"
  29. },
  30. {
  31. "id": "myFloat",
  32. "displayName": "My Float",
  33. "description": "This is a tooltip for MyFloat",
  34. "type": "float"
  35. },
  36. {
  37. "id": "myVector2",
  38. "displayName": "My Vector2",
  39. "description": "This is a tooltip for MyVector2",
  40. "type": "vector2"
  41. }
  42. ],
  43. "diffuse": [
  44. {
  45. "id": "myInt",
  46. "displayName": "My Int",
  47. "description": "This is a tooltip for MyInt",
  48. "type": "int",
  49. "min": -100,
  50. "max": 100
  51. },
  52. {
  53. "id": "myColor",
  54. "displayName": "My Color",
  55. "description": "This is a tooltip for MyColor",
  56. "type": "color"
  57. },
  58. {
  59. "id": "myImage",
  60. "displayName": "My Image",
  61. "description": "This is a tooltip for MyImage",
  62. "type": "image"
  63. }
  64. ],
  65. "specular": [
  66. {
  67. "id": "myUInt",
  68. "displayName": "My UInt",
  69. "description": "This is a tooltip for MyUInt",
  70. "type": "uint",
  71. "max": 1000,
  72. "step": 5
  73. },
  74. {
  75. "id": "myVector3",
  76. "displayName": "My Vector3",
  77. "description": "This is a tooltip for MyVector3",
  78. "type": "vector3"
  79. },
  80. {
  81. "id": "myVector4",
  82. "displayName": "My Vector4",
  83. "description": "This is a tooltip for MyVector4",
  84. "type": "vector4"
  85. }
  86. ]
  87. }
  88. }
  89. }