box.b2l.mat 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. return {
  2. Material = {
  3. params = {
  4. ambient_light = {
  5. datatype = 'float',
  6. tag = 'Lighting',
  7. value = 0.5
  8. },
  9. diffuse_color = {
  10. datatype = 'vec3',
  11. tag = 'Material',
  12. value = { 1, 1, 1 }
  13. },
  14. diffuse_texture = {
  15. datatype = 'sampler2D',
  16. tag = 'Material'
  17. },
  18. groups = {
  19. datatype = 'mat4',
  20. tag = 'Misc'
  21. },
  22. light_angle_a = {
  23. datatype = 'float',
  24. tag = 'Lighting',
  25. value = 0.5
  26. },
  27. light_angle_b = {
  28. datatype = 'float',
  29. tag = 'Lighting',
  30. value = 0.5
  31. },
  32. light_color = {
  33. datatype = 'vec3',
  34. tag = 'Lighting',
  35. value = { 1, 1, 1 }
  36. },
  37. light_intensity = {
  38. datatype = 'float',
  39. tag = 'Lighting',
  40. value = 0.5
  41. },
  42. model = {
  43. datatype = 'mat4',
  44. tag = 'Misc'
  45. },
  46. normal_texture = {
  47. datatype = 'sampler2D',
  48. tag = 'Material'
  49. },
  50. normal_texture_scale = {
  51. datatype = 'float',
  52. tag = 'Material',
  53. value = 0.5
  54. },
  55. proj = {
  56. datatype = 'mat4',
  57. tag = 'Misc'
  58. },
  59. skinned = {
  60. datatype = 'bool',
  61. tag = 'Animation',
  62. value = false
  63. },
  64. use_diffuse_texture = {
  65. datatype = 'bool',
  66. tag = 'Material',
  67. value = false
  68. },
  69. use_normal_texture = {
  70. datatype = 'bool',
  71. tag = 'Material',
  72. value = false
  73. },
  74. view = {
  75. datatype = 'mat4',
  76. tag = 'Misc'
  77. }
  78. },
  79. shaders = {
  80. fs_filename = 'test.frag.glsl',
  81. vs_filename = 'test.vert.glsl'
  82. }
  83. }
  84. }