recolor.material 726 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: "sprite"
  2. tags: "tile"
  3. vertex_program: "/example/recolor.vp"
  4. fragment_program: "/example/recolor.fp"
  5. vertex_constants {
  6. name: "view_proj"
  7. type: CONSTANT_TYPE_VIEWPROJ
  8. }
  9. fragment_constants {
  10. name: "tint"
  11. type: CONSTANT_TYPE_USER
  12. value {
  13. x: 1.0
  14. y: 1.0
  15. z: 1.0
  16. w: 1.0
  17. }
  18. }
  19. samplers {
  20. name: "texture_sampler"
  21. wrap_u: WRAP_MODE_CLAMP_TO_EDGE
  22. wrap_v: WRAP_MODE_CLAMP_TO_EDGE
  23. filter_min: FILTER_MODE_MIN_DEFAULT
  24. filter_mag: FILTER_MODE_MAG_DEFAULT
  25. }
  26. attributes {
  27. name: "newcolor"
  28. semantic_type: SEMANTIC_TYPE_COLOR
  29. double_values {
  30. v: 0.3882
  31. v: 0.6078
  32. v: 1.0
  33. v: 1.0
  34. }
  35. }
  36. attributes {
  37. name: "outline"
  38. double_values {
  39. v: 0.5
  40. v: 0.5
  41. v: 0.5
  42. v: 0.0
  43. }
  44. }