physics.material 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. material colored
  2. {
  3. technique
  4. {
  5. pass
  6. {
  7. vertexShader = res/shaders/colored.vert
  8. fragmentShader = res/shaders/colored.frag
  9. defines = DIRECTIONAL_LIGHT_COUNT 1
  10. u_worldViewProjectionMatrix = WORLD_VIEW_PROJECTION_MATRIX
  11. u_inverseTransposeWorldViewMatrix = INVERSE_TRANSPOSE_WORLD_VIEW_MATRIX
  12. renderState
  13. {
  14. cullFace = true
  15. depthTest = true
  16. }
  17. }
  18. }
  19. }
  20. material floor : colored
  21. {
  22. technique
  23. {
  24. pass
  25. {
  26. u_diffuseColor = 0.5, 0.5, 0.5, 1
  27. }
  28. }
  29. }
  30. material green : colored
  31. {
  32. technique
  33. {
  34. pass
  35. {
  36. u_diffuseColor = 0.1, 0.6, 0.1, 1
  37. }
  38. }
  39. }
  40. material blue : colored
  41. {
  42. technique
  43. {
  44. pass
  45. {
  46. u_diffuseColor = 0, 0, 1, 1
  47. }
  48. }
  49. }
  50. material red : colored
  51. {
  52. technique
  53. {
  54. pass
  55. {
  56. u_diffuseColor = 1, 0, 0, 1
  57. }
  58. }
  59. }