430eccbf-bf2c-4e6e-8c0c-884bbb487f32.json 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. {
  2. "__type__": "cc.EffectAsset",
  3. "_name": "__builtin-editor-gizmo-line",
  4. "_objFlags": 0,
  5. "_native": "",
  6. "properties": null,
  7. "techniques": [
  8. {
  9. "passes": [
  10. {
  11. "stage": "transparent",
  12. "blendState": {
  13. "targets": [
  14. {
  15. "blend": true,
  16. "blendEq": 32774,
  17. "blendSrc": 770,
  18. "blendDst": 1
  19. }
  20. ]
  21. },
  22. "rasterizerState": {
  23. "cullMode": 0
  24. },
  25. "depthStencilState": {
  26. "depthTest": true
  27. },
  28. "properties": {
  29. "diffuseColor": {
  30. "value": [
  31. 1,
  32. 1,
  33. 1,
  34. 1
  35. ],
  36. "editor": {
  37. "type": "color"
  38. },
  39. "type": 16
  40. }
  41. },
  42. "program": "__builtin-editor-gizmo-line|gizmo-line-vs|gizmo-line-fs:front"
  43. },
  44. {
  45. "stage": "transparent",
  46. "blendState": {
  47. "targets": [
  48. {
  49. "blend": true,
  50. "blendEq": 32774,
  51. "blendSrc": 770,
  52. "blendDst": 1
  53. }
  54. ]
  55. },
  56. "rasterizerState": {
  57. "cullMode": 0
  58. },
  59. "depthStencilState": {
  60. "depthTest": true,
  61. "depthFunc": 516
  62. },
  63. "properties": {
  64. "diffuseColor": {
  65. "value": [
  66. 1,
  67. 1,
  68. 1,
  69. 1
  70. ],
  71. "editor": {
  72. "type": "color"
  73. },
  74. "type": 16
  75. }
  76. },
  77. "program": "__builtin-editor-gizmo-line|gizmo-line-vs|gizmo-line-fs:back"
  78. }
  79. ]
  80. }
  81. ],
  82. "shaders": [
  83. {
  84. "hash": 2579669062,
  85. "glsl3": {
  86. "vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nattribute vec3 a_position;\nvoid main () {\n gl_Position = cc_matViewProj * cc_matWorld * vec4(a_position, 1);\n gl_Position.z -= 0.0001;\n}",
  87. "frag": "\nprecision highp float;\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nuniform DIFFUSE_COLOR {\n vec4 diffuseColor;\n};\nvec4 front() {\n return CCFragOutput(diffuseColor);\n}\nout vec4 cc_FragColor;\nvoid main() { cc_FragColor = front(); }"
  88. },
  89. "glsl1": {
  90. "vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nvoid main () {\n gl_Position = cc_matViewProj * cc_matWorld * vec4(a_position, 1);\n gl_Position.z -= 0.0001;\n}",
  91. "frag": "\nprecision highp float;\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nuniform vec4 diffuseColor;\nvec4 front() {\n return CCFragOutput(diffuseColor);\n}\nvoid main() { gl_FragColor = front(); }"
  92. },
  93. "builtins": {
  94. "globals": {
  95. "blocks": [
  96. {
  97. "name": "CCGlobal",
  98. "defines": []
  99. }
  100. ],
  101. "samplers": []
  102. },
  103. "locals": {
  104. "blocks": [
  105. {
  106. "name": "CCLocal",
  107. "defines": []
  108. }
  109. ],
  110. "samplers": []
  111. }
  112. },
  113. "defines": [
  114. {
  115. "name": "OUTPUT_TO_GAMMA",
  116. "type": "boolean",
  117. "defines": []
  118. }
  119. ],
  120. "blocks": [
  121. {
  122. "name": "DIFFUSE_COLOR",
  123. "members": [
  124. {
  125. "name": "diffuseColor",
  126. "type": 16,
  127. "count": 1
  128. }
  129. ],
  130. "defines": [],
  131. "binding": 0
  132. }
  133. ],
  134. "samplers": [],
  135. "record": null,
  136. "name": "__builtin-editor-gizmo-line|gizmo-line-vs|gizmo-line-fs:front"
  137. },
  138. {
  139. "hash": 2538316070,
  140. "glsl3": {
  141. "vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nattribute vec3 a_position;\nvoid main () {\n gl_Position = cc_matViewProj * cc_matWorld * vec4(a_position, 1);\n gl_Position.z -= 0.0001;\n}",
  142. "frag": "\nprecision highp float;\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nuniform DIFFUSE_COLOR {\n vec4 diffuseColor;\n};\nvec4 back() {\n return CCFragOutput(vec4(diffuseColor.rgb, diffuseColor.a * 0.2));\n}\nout vec4 cc_FragColor;\nvoid main() { cc_FragColor = back(); }"
  143. },
  144. "glsl1": {
  145. "vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nvoid main () {\n gl_Position = cc_matViewProj * cc_matWorld * vec4(a_position, 1);\n gl_Position.z -= 0.0001;\n}",
  146. "frag": "\nprecision highp float;\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nuniform vec4 diffuseColor;\nvec4 back() {\n return CCFragOutput(vec4(diffuseColor.rgb, diffuseColor.a * 0.2));\n}\nvoid main() { gl_FragColor = back(); }"
  147. },
  148. "builtins": {
  149. "globals": {
  150. "blocks": [
  151. {
  152. "name": "CCGlobal",
  153. "defines": []
  154. }
  155. ],
  156. "samplers": []
  157. },
  158. "locals": {
  159. "blocks": [
  160. {
  161. "name": "CCLocal",
  162. "defines": []
  163. }
  164. ],
  165. "samplers": []
  166. }
  167. },
  168. "defines": [
  169. {
  170. "name": "OUTPUT_TO_GAMMA",
  171. "type": "boolean",
  172. "defines": []
  173. }
  174. ],
  175. "blocks": [
  176. {
  177. "name": "DIFFUSE_COLOR",
  178. "members": [
  179. {
  180. "name": "diffuseColor",
  181. "type": 16,
  182. "count": 1
  183. }
  184. ],
  185. "defines": [],
  186. "binding": 0
  187. }
  188. ],
  189. "samplers": [],
  190. "record": null,
  191. "name": "__builtin-editor-gizmo-line|gizmo-line-vs|gizmo-line-fs:back"
  192. }
  193. ]
  194. }