2
0

sprite_local_uv.material 727 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: "sprite"
  2. tags: "tile"
  3. vertex_program: "/example/sprite_local_uv.vp"
  4. fragment_program: "/example/sprite_local_uv.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: "position_local"
  28. semantic_type: SEMANTIC_TYPE_POSITION
  29. vector_type: VECTOR_TYPE_VEC2
  30. }
  31. attributes {
  32. name: "sprite_size"
  33. double_values {
  34. v: 64.0
  35. v: 64.0
  36. }
  37. vector_type: VECTOR_TYPE_VEC2
  38. }