sample.material 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. material colored
  2. {
  3. technique
  4. {
  5. pass
  6. {
  7. vertexShader = res/shaders/colored.vert
  8. fragmentShader = res/shaders/colored.frag
  9. u_worldViewProjectionMatrix = WORLD_VIEW_PROJECTION_MATRIX
  10. u_inverseTransposeWorldViewMatrix = INVERSE_TRANSPOSE_WORLD_VIEW_MATRIX
  11. renderState
  12. {
  13. cullFace = true
  14. depthTest = true
  15. }
  16. }
  17. }
  18. }
  19. material cube : colored
  20. {
  21. technique
  22. {
  23. pass
  24. {
  25. u_diffuseColor = 0.1, .6, 0.1, 1
  26. }
  27. }
  28. }
  29. material blue : colored
  30. {
  31. technique
  32. {
  33. pass
  34. {
  35. u_diffuseColor = 0, 0, 1, 1
  36. }
  37. }
  38. }
  39. material red : colored
  40. {
  41. technique
  42. {
  43. pass
  44. {
  45. u_diffuseColor = 1, 0, 0, 1
  46. }
  47. }
  48. }
  49. material cylinder : colored
  50. {
  51. technique
  52. {
  53. pass
  54. {
  55. u_diffuseColor = 0.38, 0.63, 1, 1
  56. }
  57. }
  58. }
  59. material torus : colored
  60. {
  61. technique
  62. {
  63. pass
  64. {
  65. u_diffuseColor = 1, 0.5, 0.0, 1
  66. }
  67. }
  68. }
  69. material sphere : colored
  70. {
  71. technique
  72. {
  73. pass
  74. {
  75. u_diffuseColor = 0.7, 0.7, 0.7, 1
  76. }
  77. }
  78. }
  79. material cone : colored
  80. {
  81. technique
  82. {
  83. pass
  84. {
  85. u_diffuseColor = 0.5, 0.25, 0.5, 1
  86. }
  87. }
  88. }