vertex_fragment_expected_parts.json 995 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "vertex_lines": [
  3. "",
  4. "precision highp float;",
  5. "precision highp int;",
  6. "",
  7. "layout(location = 0) in highp vec3 vertex;",
  8. "",
  9. "out highp vec4 position_interp;",
  10. "",
  11. "void main() {",
  12. "\tposition_interp = vec4(vertex.x,1,0,1);",
  13. "}",
  14. ""
  15. ],
  16. "fragment_lines": [
  17. "",
  18. "precision highp float;",
  19. "precision highp int;",
  20. "",
  21. "in highp vec4 position_interp;",
  22. "",
  23. "void main() {",
  24. "\thighp float depth = ((position_interp.z / position_interp.w) + 1.0);",
  25. "\tfrag_color = vec4(depth);",
  26. "}"
  27. ],
  28. "uniforms": [],
  29. "fbos": [],
  30. "texunits": [],
  31. "texunit_names": [],
  32. "ubos": [],
  33. "ubo_names": [],
  34. "feedbacks": [],
  35. "vertex_included_files": [],
  36. "fragment_included_files": [],
  37. "reading": "fragment",
  38. "line_offset": 33,
  39. "vertex_offset": 10,
  40. "fragment_offset": 23,
  41. "variant_defines": [
  42. "#define USE_NINEPATCH"
  43. ],
  44. "variant_names": [
  45. "MODE_NINEPATCH"
  46. ],
  47. "specialization_names": [
  48. "DISABLE_LIGHTING"
  49. ],
  50. "specialization_values": [
  51. " false\n"
  52. ]
  53. }