6c5cf6e1-b044-4eac-9431-835644d57381.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. {
  2. "__type__": "cc.EffectAsset",
  3. "_name": "__builtin-editor-gizmo-unlit",
  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. }
  18. ]
  19. },
  20. "rasterizerState": {
  21. "cullMode": 0
  22. },
  23. "depthStencilState": {
  24. "depthTest": false,
  25. "depthWrite": false
  26. },
  27. "properties": {
  28. "diffuseColor": {
  29. "value": [
  30. 1,
  31. 1,
  32. 1,
  33. 1
  34. ],
  35. "editor": {
  36. "type": "color"
  37. },
  38. "type": 16
  39. }
  40. },
  41. "program": "__builtin-editor-gizmo-unlit|gizmo-unlit-vs|gizmo-unlit-fs:front"
  42. }
  43. ]
  44. }
  45. ],
  46. "shaders": [
  47. {
  48. "hash": 304964736,
  49. "glsl3": {
  50. "vert": "\nprecision highp float;\nattribute vec3 a_position;\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};\nvoid main () {\n gl_Position = cc_matViewProj * cc_matWorld * vec4(a_position, 1);\n}",
  51. "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(); }"
  52. },
  53. "glsl1": {
  54. "vert": "\nprecision highp float;\nattribute vec3 a_position;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nvoid main () {\n gl_Position = cc_matViewProj * cc_matWorld * vec4(a_position, 1);\n}",
  55. "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(); }"
  56. },
  57. "builtins": {
  58. "globals": {
  59. "blocks": [
  60. {
  61. "name": "CCGlobal",
  62. "defines": []
  63. }
  64. ],
  65. "samplers": []
  66. },
  67. "locals": {
  68. "blocks": [
  69. {
  70. "name": "CCLocal",
  71. "defines": []
  72. }
  73. ],
  74. "samplers": []
  75. }
  76. },
  77. "defines": [
  78. {
  79. "name": "OUTPUT_TO_GAMMA",
  80. "type": "boolean",
  81. "defines": []
  82. }
  83. ],
  84. "blocks": [
  85. {
  86. "name": "DIFFUSE_COLOR",
  87. "members": [
  88. {
  89. "name": "diffuseColor",
  90. "type": 16,
  91. "count": 1
  92. }
  93. ],
  94. "defines": [],
  95. "binding": 0
  96. }
  97. ],
  98. "samplers": [],
  99. "record": null,
  100. "name": "__builtin-editor-gizmo-unlit|gizmo-unlit-vs|gizmo-unlit-fs:front"
  101. }
  102. ]
  103. }