screenspace.material 971 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: "screenspace"
  2. tags: "model"
  3. vertex_program: "/example/screenspace.vp"
  4. fragment_program: "/example/screenspace.fp"
  5. vertex_space: VERTEX_SPACE_LOCAL
  6. vertex_constants {
  7. name: "mtx_world"
  8. type: CONSTANT_TYPE_WORLD
  9. }
  10. vertex_constants {
  11. name: "mtx_view"
  12. type: CONSTANT_TYPE_VIEW
  13. }
  14. vertex_constants {
  15. name: "mtx_proj"
  16. type: CONSTANT_TYPE_PROJECTION
  17. }
  18. fragment_constants {
  19. name: "pattern_opts"
  20. type: CONSTANT_TYPE_USER
  21. value {
  22. x: 0.5
  23. y: 30.0
  24. }
  25. }
  26. fragment_constants {
  27. name: "screen_size"
  28. type: CONSTANT_TYPE_USER
  29. value {
  30. x: 1920.0
  31. y: 1080.0
  32. }
  33. }
  34. samplers {
  35. name: "texture0"
  36. wrap_u: WRAP_MODE_CLAMP_TO_EDGE
  37. wrap_v: WRAP_MODE_CLAMP_TO_EDGE
  38. filter_min: FILTER_MODE_MIN_LINEAR
  39. filter_mag: FILTER_MODE_MAG_LINEAR
  40. max_anisotropy: 0.0
  41. }
  42. samplers {
  43. name: "texture_pattern"
  44. wrap_u: WRAP_MODE_REPEAT
  45. wrap_v: WRAP_MODE_REPEAT
  46. filter_min: FILTER_MODE_MIN_LINEAR
  47. filter_mag: FILTER_MODE_MAG_LINEAR
  48. max_anisotropy: 0.0
  49. }