cocos-awesome/build/web-mobile/res/import/0b/0b7e6c4dd.9663b.json
2025-02-16 14:47:23 +08:00

1 line
14 KiB
JSON

[{"__type__":"cc.SpriteFrame","content":{"name":"default_btn_disabled","texture":"71VhFCTINJM6/Ky3oX9nBT","rect":[0,0,40,40],"offset":[0,0],"originalSize":[40,40],"capInsets":[12,12,12,12]}},{"__type__":"cc.SpriteFrame","content":{"name":"default_scrollbar","texture":"02kcE0s9pAmLe145ftvpR/","rect":[0,0,30,15],"offset":[0,0],"originalSize":[30,15],"capInsets":[10,4,10,4]}},{"__type__":"cc.Material","_name":"Mosaic","_effectAsset":{"__uuid__":"a9SpnIYl9K74lg6YPUKdOm"},"_techniqueData":{"0":{"props":{"x_count":100,"y_count":100},"defines":{"USE_TEXTURE":true,"USE_MASAIC":true}}}},{"__type__":"cc.SpriteFrame","content":{"name":"default_toggle_normal","texture":"d2kHe6FidKcpV5e1aiNTQM","rect":[0,0,28,28],"offset":[0,0],"originalSize":[28,28],"capInsets":[0,0,0,0]}},{"__type__":"cc.SpriteFrame","content":{"name":"bg","texture":"abCZXOqe9CR6hI1L1321JY","rect":[0,0,2,2],"offset":[0,0],"originalSize":[2,2],"capInsets":[0,0,0,0]}},{"__type__":"cc.SpriteFrame","content":{"name":"npc","texture":"ec23Lgrm9EX5UTuqxX4Uaa","rect":[72,54,361,458],"offset":[-3.5,-27],"originalSize":[512,512],"capInsets":[0,0,0,0]}},{"__type__":"cc.SpriteFrame","content":{"name":"default_toggle_checkmark","texture":"73oJA92A5OPKpn+ZlUPAj1","rect":[4,5,20,18],"offset":[0,0],"originalSize":[28,28],"capInsets":[0,0,0,0]}},[{"__type__":"cc.SceneAsset","_name":"Mosaic","scene":{"__id__":1},"asyncLoadAssets":null},{"__type__":"cc.Scene","_name":"New Node","_children":[{"__id__":2}],"_anchorPoint":{"__type__":"cc.Vec2"},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,0,0,0,0,0,1,1,1,1]},"autoReleaseAssets":false},{"__type__":"cc.Node","_name":"Canvas","_parent":{"__id__":1},"_children":[{"__id__":3},{"__id__":4},{"__id__":5},{"__id__":6},{"__id__":12},{"__id__":18}],"_components":[{"__type__":"cc.Canvas","node":{"__id__":2},"_designResolution":{"__type__":"cc.Size","width":1334,"height":750}},{"__type__":"cc.Widget","node":{"__id__":2},"_alignFlags":45},{"__type__":"e6cdawfgB1DSKkHRoeo2dHy","node":{"__id__":2}}],"_contentSize":{"__type__":"cc.Size","width":1334,"height":750},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[667,375,0,0,0,0,1,1,1,1]},"_id":"a5esZu+45LA5mBpvttspPD"},{"__type__":"cc.Node","_name":"Main Camera","_parent":{"__id__":2},"_components":[{"__type__":"cc.Camera","node":{"__id__":3},"_clearFlags":7,"_depth":-1}],"_contentSize":{"__type__":"cc.Size","width":1334,"height":750},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,0,452.93128617926146,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"bg","_parent":{"__id__":2},"_components":[{"__type__":"cc.Sprite","node":{"__id__":4},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_spriteFrame":{"__uuid__":"73qZOfyIJL26a0c4S9TzKj"},"_sizeMode":0},{"__type__":"cc.Widget","node":{"__id__":4},"_alignFlags":45,"_originalWidth":2,"_originalHeight":2}],"_contentSize":{"__type__":"cc.Size","width":1334,"height":750},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,0,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"npc","_parent":{"__id__":2},"_components":[{"__type__":"cc.Sprite","node":{"__id__":5},"_materials":[{"__uuid__":"6728nCjZ9CZ7CseerFzSB3"}],"_spriteFrame":{"__uuid__":"8eYBO+nOJM7r6+bZS5Acz+"}}],"_contentSize":{"__type__":"cc.Size","width":361,"height":458},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[-175.877,0,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"toggle","_parent":{"__id__":2},"_children":[{"__id__":7},{"__id__":8}],"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[181.288,147.002,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"label","_parent":{"__id__":6},"_components":[{"__type__":"cc.Label","node":{"__id__":7},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_useOriginalSize":false,"_string":"打码开关","_N$string":"打码开关","_fontSize":30,"_N$horizontalAlign":1,"_N$verticalAlign":1,"_N$cacheMode":1}],"_contentSize":{"__type__":"cc.Size","width":120,"height":50.4},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[1.057,0,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"toggle","_parent":{"__id__":6},"_children":[{"__id__":9},{"__id__":10}],"_components":[{"__type__":"cc.Toggle","node":{"__id__":8},"_N$transition":3,"transition":3,"_N$normalColor":{"__type__":"cc.Color","r":214,"g":214,"b":214},"_N$target":{"__id__":9},"checkMark":{"__id__":11},"checkEvents":[{"__type__":"cc.ClickEvent","target":{"__id__":2},"_componentId":"e6cdawfgB1DSKkHRoeo2dHy","handler":"togglePixel"}]}],"_contentSize":{"__type__":"cc.Size","width":28,"height":28},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[113.955,0,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"Background","_parent":{"__id__":8},"_components":[{"__type__":"cc.Sprite","node":{"__id__":9},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_spriteFrame":{"__uuid__":"68J8oyAQdFUrqy37MXmbtE"}}],"_contentSize":{"__type__":"cc.Size","width":28,"height":28},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,0,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"checkmark","_parent":{"__id__":8},"_components":[{"__id__":11}],"_contentSize":{"__type__":"cc.Size","width":28,"height":28},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,0,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Sprite","node":{"__id__":10},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_spriteFrame":{"__uuid__":"90AErWL21A4ZPvtxQ3XG8G"},"_sizeMode":2,"_isTrimmedMode":false},{"__type__":"cc.Node","_name":"direction_x","_parent":{"__id__":2},"_children":[{"__id__":13},{"__id__":14}],"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[210.523,34.936,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"tip","_parent":{"__id__":12},"_components":[{"__type__":"cc.Label","node":{"__id__":13},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_useOriginalSize":false,"_string":"水平方向格子数量","_N$string":"水平方向格子数量","_fontSize":30,"_N$horizontalAlign":1,"_N$verticalAlign":1,"_N$cacheMode":1}],"_contentSize":{"__type__":"cc.Size","width":240,"height":50.4},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[31.968,0,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"slider","_parent":{"__id__":12},"_children":[{"__id__":15},{"__id__":16}],"_components":[{"__type__":"cc.Slider","node":{"__id__":14},"slideEvents":[{"__type__":"cc.ClickEvent","target":{"__id__":2},"_componentId":"e6cdawfgB1DSKkHRoeo2dHy","handler":"setPixelCount","customEventData":"x"}],"_N$handle":{"__id__":17}}],"_contentSize":{"__type__":"cc.Size","width":300,"height":20},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[59.055,-54.647,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"Background","_parent":{"__id__":14},"_components":[{"__type__":"cc.Sprite","node":{"__id__":15},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_spriteFrame":{"__uuid__":"312JYturtOx74Zjp9UpOqZ"},"_type":1,"_sizeMode":0}],"_contentSize":{"__type__":"cc.Size","width":300,"height":20},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,0,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"Handle","_parent":{"__id__":14},"_components":[{"__type__":"cc.Sprite","node":{"__id__":16},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_spriteFrame":{"__uuid__":"e7q6FL+VZEgLJUjVeDLic/"},"_type":1,"_sizeMode":2},{"__id__":17}],"_contentSize":{"__type__":"cc.Size","width":32,"height":32},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,0,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Button","node":{"__id__":16},"_normalMaterial":{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"},"zoomScale":1.1,"_N$enableAutoGrayEffect":true,"_N$transition":3,"transition":3,"_N$pressedColor":{"__type__":"cc.Color","r":255,"g":255,"b":255},"pressedColor":{"__type__":"cc.Color","r":255,"g":255,"b":255},"_N$disabledColor":{"__type__":"cc.Color","r":255,"g":255,"b":255},"_N$normalSprite":{"__uuid__":"e7q6FL+VZEgLJUjVeDLic/"},"_N$pressedSprite":{"__uuid__":"e7q6FL+VZEgLJUjVeDLic/"},"pressedSprite":{"__uuid__":"e7q6FL+VZEgLJUjVeDLic/"},"_N$hoverSprite":{"__uuid__":"e7q6FL+VZEgLJUjVeDLic/"},"hoverSprite":{"__uuid__":"e7q6FL+VZEgLJUjVeDLic/"},"_N$disabledSprite":{"__uuid__":"29FYIk+N1GYaeWH/q1NxQO"},"_N$target":{"__id__":16}},{"__type__":"cc.Node","_name":"direction_y","_parent":{"__id__":2},"_children":[{"__id__":19},{"__id__":20}],"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[210.523,-119.694,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"tip","_parent":{"__id__":18},"_components":[{"__type__":"cc.Label","node":{"__id__":19},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_useOriginalSize":false,"_string":"垂直方向格子数量","_N$string":"垂直方向格子数量","_fontSize":30,"_N$horizontalAlign":1,"_N$verticalAlign":1,"_N$cacheMode":1}],"_contentSize":{"__type__":"cc.Size","width":240,"height":50.4},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[29.661,0,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"slider","_parent":{"__id__":18},"_children":[{"__id__":21},{"__id__":22}],"_components":[{"__type__":"cc.Slider","node":{"__id__":20},"slideEvents":[{"__type__":"cc.ClickEvent","target":{"__id__":2},"_componentId":"e6cdawfgB1DSKkHRoeo2dHy","handler":"setPixelCount","customEventData":"y"}],"_N$handle":{"__id__":23}}],"_contentSize":{"__type__":"cc.Size","width":300,"height":20},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[59.055,-54.647,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"Background","_parent":{"__id__":20},"_components":[{"__type__":"cc.Sprite","node":{"__id__":21},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_spriteFrame":{"__uuid__":"312JYturtOx74Zjp9UpOqZ"},"_type":1,"_sizeMode":0}],"_contentSize":{"__type__":"cc.Size","width":300,"height":20},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,0,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"Handle","_parent":{"__id__":20},"_components":[{"__type__":"cc.Sprite","node":{"__id__":22},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_spriteFrame":{"__uuid__":"e7q6FL+VZEgLJUjVeDLic/"},"_type":1,"_sizeMode":2},{"__id__":23}],"_contentSize":{"__type__":"cc.Size","width":32,"height":32},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,0,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Button","node":{"__id__":22},"_normalMaterial":{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"},"zoomScale":1.1,"_N$enableAutoGrayEffect":true,"_N$transition":3,"transition":3,"_N$pressedColor":{"__type__":"cc.Color","r":255,"g":255,"b":255},"pressedColor":{"__type__":"cc.Color","r":255,"g":255,"b":255},"_N$disabledColor":{"__type__":"cc.Color","r":255,"g":255,"b":255},"_N$normalSprite":{"__uuid__":"e7q6FL+VZEgLJUjVeDLic/"},"_N$pressedSprite":{"__uuid__":"e7q6FL+VZEgLJUjVeDLic/"},"pressedSprite":{"__uuid__":"e7q6FL+VZEgLJUjVeDLic/"},"_N$hoverSprite":{"__uuid__":"e7q6FL+VZEgLJUjVeDLic/"},"hoverSprite":{"__uuid__":"e7q6FL+VZEgLJUjVeDLic/"},"_N$disabledSprite":{"__uuid__":"29FYIk+N1GYaeWH/q1NxQO"},"_N$target":{"__id__":22}}],{"__type__":"cc.EffectAsset","_name":"Mosaic","techniques":[{"passes":[{"blendState":{"targets":[{"blend":true}]},"rasterizerState":{"cullMode":0},"properties":{"texture":{"value":"white","type":29},"x_count":{"value":[100],"type":13},"y_count":{"value":[100],"type":13}},"program":"Mosaic|vs|fs"}]}],"shaders":[{"hash":3072177948,"glsl3":{"vert":"\nprecision highp float;\nuniform CCGlobal {\n highp vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n mediump vec4 cc_nativeSize;\n highp mat4 cc_matView;\n mediump mat4 cc_matViewInv;\n mediump mat4 cc_matProj;\n mediump mat4 cc_matProjInv;\n mediump mat4 cc_matViewProj;\n mediump mat4 cc_matViewProjInv;\n mediump vec4 cc_cameraPos;\n};\nin vec3 a_position;\nin vec4 a_color;\nout vec4 v_color;\n#if USE_TEXTURE\nin vec2 a_uv0;\nout vec2 v_uv0;\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #endif\n v_color = a_color;\n gl_Position = pos;\n}","frag":"\nprecision highp float;\nin vec4 v_color;\n#if USE_TEXTURE\nin vec2 v_uv0;\nuniform sampler2D texture;\n#endif\n#if USE_MASAIC\nuniform ARGS{\n float x_count;\n float y_count;\n};\nvec2 getUvMapPos() {\n float block_w = 1.0 / x_count;\n float block_x_idx = floor(v_uv0.x / block_w);\n float block_h = 1.0 / y_count;\n float block_y_idx = floor(v_uv0.y / block_h);\n return vec2(block_w * (block_x_idx + 0.5), block_h * (block_y_idx + 0.5));\n}\n#endif\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n vec2 realPos = v_uv0;\n #if USE_MASAIC\n realPos = getUvMapPos();\n #endif\n o *= texture(texture, realPos);\n o *= v_color;\n gl_FragColor = o;\n}"},"glsl1":{"vert":"\nprecision highp float;\nuniform mediump mat4 cc_matViewProj;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\n#if USE_TEXTURE\nattribute vec2 a_uv0;\nvarying vec2 v_uv0;\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #endif\n v_color = a_color;\n gl_Position = pos;\n}","frag":"\nprecision highp float;\nvarying vec4 v_color;\n#if USE_TEXTURE\nvarying vec2 v_uv0;\nuniform sampler2D texture;\n#endif\n#if USE_MASAIC\nuniform float x_count;\nuniform float y_count;\nvec2 getUvMapPos() {\n float block_w = 1.0 / x_count;\n float block_x_idx = floor(v_uv0.x / block_w);\n float block_h = 1.0 / y_count;\n float block_y_idx = floor(v_uv0.y / block_h);\n return vec2(block_w * (block_x_idx + 0.5), block_h * (block_y_idx + 0.5));\n}\n#endif\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n vec2 realPos = v_uv0;\n #if USE_MASAIC\n realPos = getUvMapPos();\n #endif\n o *= texture2D(texture, realPos);\n o *= v_color;\n gl_FragColor = o;\n}"},"builtins":{"globals":{"blocks":[{"name":"CCGlobal","defines":[]}],"samplers":[]},"locals":{"blocks":[],"samplers":[]}},"defines":[{"name":"USE_TEXTURE","type":"boolean","defines":[]},{"name":"CC_USE_MODEL","type":"boolean","defines":[]},{"name":"USE_MASAIC","type":"boolean","defines":[]}],"blocks":[{"name":"ARGS","members":[{"name":"x_count","type":13,"count":1},{"name":"y_count","type":13,"count":1}],"defines":["USE_MASAIC"],"binding":0}],"samplers":[{"name":"texture","type":29,"count":1,"defines":["USE_TEXTURE"],"binding":30}],"record":null,"name":"Mosaic|vs|fs"}]},{"__type__":"cc.SpriteFrame","content":{"name":"default_radio_button_off","texture":"56fc2Ai/RFNYpaMT8crweK","rect":[3,3,26,26],"offset":[0,0],"originalSize":[32,32],"capInsets":[0,0,0,0]}}]