mirror of
https://github.com/ifengzp/cocos-awesome.git
synced 2025-04-04 14:12:36 +00:00
1 line
23 KiB
JSON
1 line
23 KiB
JSON
[{"__type__":"cc.EffectAsset","_name":"cartoon","techniques":[{"passes":[{"blendState":{"targets":[{"blend":true}]},"rasterizerState":{"cullMode":0},"properties":{"texture":{"value":"white","type":29},"alphaThreshold":{"value":[0.5],"type":13}},"program":"cartoon|vs|fs"}]}],"shaders":[{"hash":135137821,"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};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\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;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nin vec4 v_color;\n#if USE_TEXTURE\nin vec2 v_uv0;\nuniform sampler2D texture;\n#endif\nvoid main () {\n vec4 color = texture(texture, v_uv0);\n float _r = abs(color.g - color.b + color.g + color.r) * color.r;\n float _g = abs(color.b - color.g + color.b + color.r) * color.r;\n float _b = abs(color.b - color.g + color.b + color.r) * color.g;\n color = vec4(_r, _g, _b, color.a);\n gl_FragColor = color;\n}"},"glsl1":{"vert":"\nprecision highp float;\nuniform mediump mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\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;\n#if USE_ALPHA_TEST\n#endif\nvarying vec4 v_color;\n#if USE_TEXTURE\nvarying vec2 v_uv0;\nuniform sampler2D texture;\n#endif\nvoid main () {\n vec4 color = texture2D(texture, v_uv0);\n float _r = abs(color.g - color.b + color.g + color.r) * color.r;\n float _g = abs(color.b - color.g + color.b + color.r) * color.r;\n float _b = abs(color.b - color.g + color.b + color.r) * color.g;\n color = vec4(_r, _g, _b, color.a);\n gl_FragColor = color;\n}"},"builtins":{"globals":{"blocks":[{"name":"CCGlobal","defines":[]}],"samplers":[]},"locals":{"blocks":[{"name":"CCLocal","defines":[]}],"samplers":[]}},"defines":[{"name":"USE_TEXTURE","type":"boolean","defines":[]},{"name":"CC_USE_MODEL","type":"boolean","defines":[]},{"name":"USE_ALPHA_TEST","type":"boolean","defines":[]}],"blocks":[{"name":"ALPHA_TEST","members":[{"name":"alphaThreshold","type":13,"count":1}],"defines":["USE_ALPHA_TEST"],"binding":0}],"samplers":[{"name":"texture","type":29,"count":1,"defines":["USE_TEXTURE"],"binding":30}],"record":null,"name":"cartoon|vs|fs"}]},{"__type__":"cc.Material","_name":"cartoon","_effectAsset":{"__uuid__":"14ENwaGQNDX796NeSMpT/W"},"_techniqueData":{"0":{"defines":{"USE_TEXTURE":true}}}},{"__type__":"cc.SpriteFrame","content":{"name":"img","texture":"076w3BIMtOpq/xHtpLwXT9","rect":[0,0,500,375],"offset":[0,0],"originalSize":[500,375],"capInsets":[0,0,0,0]}},{"__type__":"cc.EffectAsset","_name":"reversal","techniques":[{"passes":[{"blendState":{"targets":[{"blend":true}]},"rasterizerState":{"cullMode":0},"properties":{"texture":{"value":"white","type":29},"alphaThreshold":{"value":[0.5],"type":13}},"program":"reversal|vs|fs"}]}],"shaders":[{"hash":3728407578,"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};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\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;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nin vec4 v_color;\n#if USE_TEXTURE\nin vec2 v_uv0;\nuniform sampler2D texture;\n#endif\nvoid main () {\n vec4 color = texture(texture, v_uv0);\n float _r = 255.0 / 256.0 - color.r;\n float _g = 255.0 / 256.0 - color.g;\n float _b = 255.0 / 256.0 - color.b;\n color = vec4(_r, _g, _b, color.a);\n gl_FragColor = color;\n}"},"glsl1":{"vert":"\nprecision highp float;\nuniform mediump mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\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;\n#if USE_ALPHA_TEST\n#endif\nvarying vec4 v_color;\n#if USE_TEXTURE\nvarying vec2 v_uv0;\nuniform sampler2D texture;\n#endif\nvoid main () {\n vec4 color = texture2D(texture, v_uv0);\n float _r = 255.0 / 256.0 - color.r;\n float _g = 255.0 / 256.0 - color.g;\n float _b = 255.0 / 256.0 - color.b;\n color = vec4(_r, _g, _b, color.a);\n gl_FragColor = color;\n}"},"builtins":{"globals":{"blocks":[{"name":"CCGlobal","defines":[]}],"samplers":[]},"locals":{"blocks":[{"name":"CCLocal","defines":[]}],"samplers":[]}},"defines":[{"name":"USE_TEXTURE","type":"boolean","defines":[]},{"name":"CC_USE_MODEL","type":"boolean","defines":[]},{"name":"USE_ALPHA_TEST","type":"boolean","defines":[]}],"blocks":[{"name":"ALPHA_TEST","members":[{"name":"alphaThreshold","type":13,"count":1}],"defines":["USE_ALPHA_TEST"],"binding":0}],"samplers":[{"name":"texture","type":29,"count":1,"defines":["USE_TEXTURE"],"binding":30}],"record":null,"name":"reversal|vs|fs"}]},{"__type__":"cc.SpriteFrame","content":{"name":"bg","texture":"b0nMS2qPNCNpxrBob8PXZe","rect":[0,0,2,2],"offset":[0,0],"originalSize":[2,2],"capInsets":[0,0,0,0]}},{"__type__":"cc.EffectAsset","_name":"frozen","techniques":[{"passes":[{"blendState":{"targets":[{"blend":true}]},"rasterizerState":{"cullMode":0},"properties":{"texture":{"value":"white","type":29},"alphaThreshold":{"value":[0.5],"type":13}},"program":"frozen|vs|fs"}]}],"shaders":[{"hash":435855768,"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};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\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;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nin vec4 v_color;\n#if USE_TEXTURE\nin vec2 v_uv0;\nuniform sampler2D texture;\n#endif\nvoid main () {\n vec4 color = texture(texture, v_uv0);\n float r = abs(color.r - color.g - color.b) * 1.5;\n float g = abs(color.g - color.b - color.r) * 1.5;\n float b = abs(color.b - color.r - color.g) * 1.5;\n color = vec4(r, g, b, color.a);\n gl_FragColor = color;\n}"},"glsl1":{"vert":"\nprecision highp float;\nuniform mediump mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\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;\n#if USE_ALPHA_TEST\n#endif\nvarying vec4 v_color;\n#if USE_TEXTURE\nvarying vec2 v_uv0;\nuniform sampler2D texture;\n#endif\nvoid main () {\n vec4 color = texture2D(texture, v_uv0);\n float r = abs(color.r - color.g - color.b) * 1.5;\n float g = abs(color.g - color.b - color.r) * 1.5;\n float b = abs(color.b - color.r - color.g) * 1.5;\n color = vec4(r, g, b, color.a);\n gl_FragColor = color;\n}"},"builtins":{"globals":{"blocks":[{"name":"CCGlobal","defines":[]}],"samplers":[]},"locals":{"blocks":[{"name":"CCLocal","defines":[]}],"samplers":[]}},"defines":[{"name":"USE_TEXTURE","type":"boolean","defines":[]},{"name":"CC_USE_MODEL","type":"boolean","defines":[]},{"name":"USE_ALPHA_TEST","type":"boolean","defines":[]}],"blocks":[{"name":"ALPHA_TEST","members":[{"name":"alphaThreshold","type":13,"count":1}],"defines":["USE_ALPHA_TEST"],"binding":0}],"samplers":[{"name":"texture","type":29,"count":1,"defines":["USE_TEXTURE"],"binding":30}],"record":null,"name":"frozen|vs|fs"}]},{"__type__":"cc.EffectAsset","_name":"gray","techniques":[{"passes":[{"blendState":{"targets":[{"blend":true}]},"rasterizerState":{"cullMode":0},"properties":{"texture":{"value":"white","type":29},"alphaThreshold":{"value":[0.5],"type":13}},"program":"gray|vs|fs"}]}],"shaders":[{"hash":1400256649,"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};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\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;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nin vec4 v_color;\n#if USE_TEXTURE\nin vec2 v_uv0;\nuniform sampler2D texture;\n#endif\nvoid main () {\n vec4 color = texture(texture, v_uv0);\n float gray = (color.r + color.g + color.b)/3.0;\n color = vec4(gray, gray, gray, color.a);\n gl_FragColor = color;\n}"},"glsl1":{"vert":"\nprecision highp float;\nuniform mediump mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\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;\n#if USE_ALPHA_TEST\n#endif\nvarying vec4 v_color;\n#if USE_TEXTURE\nvarying vec2 v_uv0;\nuniform sampler2D texture;\n#endif\nvoid main () {\n vec4 color = texture2D(texture, v_uv0);\n float gray = (color.r + color.g + color.b)/3.0;\n color = vec4(gray, gray, gray, color.a);\n gl_FragColor = color;\n}"},"builtins":{"globals":{"blocks":[{"name":"CCGlobal","defines":[]}],"samplers":[]},"locals":{"blocks":[{"name":"CCLocal","defines":[]}],"samplers":[]}},"defines":[{"name":"USE_TEXTURE","type":"boolean","defines":[]},{"name":"CC_USE_MODEL","type":"boolean","defines":[]},{"name":"USE_ALPHA_TEST","type":"boolean","defines":[]}],"blocks":[{"name":"ALPHA_TEST","members":[{"name":"alphaThreshold","type":13,"count":1}],"defines":["USE_ALPHA_TEST"],"binding":0}],"samplers":[{"name":"texture","type":29,"count":1,"defines":["USE_TEXTURE"],"binding":30}],"record":null,"name":"gray|vs|fs"}]},{"__type__":"cc.Material","_name":"frozen","_effectAsset":{"__uuid__":"59U/EnEi9I44kGtNu5u57G"},"_techniqueData":{"0":{"defines":{"USE_TEXTURE":true}}}},[{"__type__":"cc.SceneAsset","_name":"Filter","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__":7},{"__id__":9},{"__id__":11},{"__id__":13},{"__id__":15}],"_components":[{"__type__":"cc.Canvas","node":{"__id__":2},"_designResolution":{"__type__":"cc.Size","width":1334,"height":750}},{"__type__":"cc.Widget","node":{"__id__":2},"_alignFlags":45}],"_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":960,"height":640},"_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__":"56QP8aZtxLqbDli+QZCjMz"},"_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":"normal","_parent":{"__id__":2},"_children":[{"__id__":6}],"_components":[{"__type__":"cc.Sprite","node":{"__id__":5},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_spriteFrame":{"__uuid__":"47ZnkDyXlGaLA5UP6alcEq"}}],"_contentSize":{"__type__":"cc.Size","width":500,"height":375},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[-410,200,0,0,0,0,1,0.7,0.7,1]}},{"__type__":"cc.Node","_name":"label","_parent":{"__id__":5},"_components":[{"__type__":"cc.Label","node":{"__id__":6},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_useOriginalSize":false,"_string":"原图","_N$string":"原图","_N$horizontalAlign":1,"_N$verticalAlign":1,"_N$cacheMode":1}],"_contentSize":{"__type__":"cc.Size","width":80,"height":50.4},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,-230,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"brown","_parent":{"__id__":2},"_children":[{"__id__":8}],"_components":[{"__type__":"cc.Sprite","node":{"__id__":7},"_materials":[{"__uuid__":"e6l71RgaROOp5Mze9q9ufK"}],"_spriteFrame":{"__uuid__":"47ZnkDyXlGaLA5UP6alcEq"}}],"_contentSize":{"__type__":"cc.Size","width":500,"height":375},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,200,0,0,0,0,1,0.7,0.7,1]}},{"__type__":"cc.Node","_name":"label","_parent":{"__id__":7},"_components":[{"__type__":"cc.Label","node":{"__id__":8},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_useOriginalSize":false,"_string":"褐色(老照片)","_N$string":"褐色(老照片)","_N$horizontalAlign":1,"_N$verticalAlign":1,"_N$cacheMode":1}],"_contentSize":{"__type__":"cc.Size","width":226.64,"height":50.4},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,-230,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"gray","_parent":{"__id__":2},"_children":[{"__id__":10}],"_components":[{"__type__":"cc.Sprite","node":{"__id__":9},"_materials":[{"__uuid__":"d3O2xnzehDP5HtzOj5nblB"}],"_spriteFrame":{"__uuid__":"47ZnkDyXlGaLA5UP6alcEq"}}],"_contentSize":{"__type__":"cc.Size","width":500,"height":375},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[410,200,0,0,0,0,1,0.7,0.7,1]}},{"__type__":"cc.Node","_name":"label","_parent":{"__id__":9},"_components":[{"__type__":"cc.Label","node":{"__id__":10},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_useOriginalSize":false,"_string":"去色、灰色","_N$string":"去色、灰色","_N$horizontalAlign":1,"_N$verticalAlign":1,"_N$cacheMode":1}],"_contentSize":{"__type__":"cc.Size","width":200,"height":50.4},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,-230,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"reversal","_parent":{"__id__":2},"_children":[{"__id__":12}],"_components":[{"__type__":"cc.Sprite","node":{"__id__":11},"_materials":[{"__uuid__":"b4BMvaPoJAOoICCEtXGTRa"}],"_spriteFrame":{"__uuid__":"47ZnkDyXlGaLA5UP6alcEq"}}],"_contentSize":{"__type__":"cc.Size","width":500,"height":375},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[-410,-140,0,0,0,0,1,0.7,0.7,1]}},{"__type__":"cc.Node","_name":"label","_parent":{"__id__":11},"_components":[{"__type__":"cc.Label","node":{"__id__":12},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_useOriginalSize":false,"_string":"反相","_N$string":"反相","_N$horizontalAlign":1,"_N$verticalAlign":1,"_N$cacheMode":1}],"_contentSize":{"__type__":"cc.Size","width":80,"height":50.4},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,-230,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"frozen","_parent":{"__id__":2},"_children":[{"__id__":14}],"_components":[{"__type__":"cc.Sprite","node":{"__id__":13},"_materials":[{"__uuid__":"821b/UoZBH8KIOKCoAaHN7"}],"_spriteFrame":{"__uuid__":"47ZnkDyXlGaLA5UP6alcEq"}}],"_contentSize":{"__type__":"cc.Size","width":500,"height":375},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,-140,0,0,0,0,1,0.7,0.7,1]}},{"__type__":"cc.Node","_name":"label","_parent":{"__id__":13},"_components":[{"__type__":"cc.Label","node":{"__id__":14},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_useOriginalSize":false,"_string":"冰冻","_N$string":"冰冻","_N$horizontalAlign":1,"_N$verticalAlign":1,"_N$cacheMode":1}],"_contentSize":{"__type__":"cc.Size","width":80,"height":50.4},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,-230,0,0,0,0,1,1,1,1]}},{"__type__":"cc.Node","_name":"cartoon","_parent":{"__id__":2},"_children":[{"__id__":16}],"_components":[{"__type__":"cc.Sprite","node":{"__id__":15},"_materials":[{"__uuid__":"33J08w519Asaw/zqcbe6SW"}],"_spriteFrame":{"__uuid__":"47ZnkDyXlGaLA5UP6alcEq"}}],"_contentSize":{"__type__":"cc.Size","width":500,"height":375},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[410,-140,0,0,0,0,1,0.7,0.7,1]}},{"__type__":"cc.Node","_name":"label","_parent":{"__id__":15},"_components":[{"__type__":"cc.Label","node":{"__id__":16},"_materials":[{"__uuid__":"ecpdLyjvZBwrvm+cedCcQy"}],"_useOriginalSize":false,"_string":"卡通","_N$string":"卡通","_N$horizontalAlign":1,"_N$verticalAlign":1,"_N$cacheMode":1}],"_contentSize":{"__type__":"cc.Size","width":80,"height":50.4},"_trs":{"__type__":"TypedArray","ctor":"Float64Array","array":[0,-230,0,0,0,0,1,1,1,1]}}],{"__type__":"cc.Material","_name":"reversal","_effectAsset":{"__uuid__":"533vif3FlMgYwf8JZrF/AK"},"_techniqueData":{"0":{"defines":{"USE_TEXTURE":true}}}},{"__type__":"cc.Material","_name":"gray","_effectAsset":{"__uuid__":"69VQymyIVHBrQcwEj65QUb"},"_techniqueData":{"0":{"defines":{"USE_TEXTURE":true}}}},{"__type__":"cc.EffectAsset","_name":"brown","techniques":[{"passes":[{"blendState":{"targets":[{"blend":true}]},"rasterizerState":{"cullMode":0},"properties":{"texture":{"value":"white","type":29}},"program":"brown|vs|fs"}]}],"shaders":[{"hash":3296869876,"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};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\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;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nin vec4 v_color;\n#if USE_TEXTURE\nin vec2 v_uv0;\nuniform sampler2D texture;\n#endif\nvoid main () {\n vec4 color = texture(texture, v_uv0);\n float _r = color.r * 0.393 + color.g * 0.769 + color.b * 0.189;\n float _g = color.r * 0.349 + color.g * 0.686 + color.b * 0.168;\n float _b = color.r * 0.272 + color.g * 0.534 + color.b * 0.131;\n color = vec4(_r, _g, _b, color.a);\n gl_FragColor = color;\n}"},"glsl1":{"vert":"\nprecision highp float;\nuniform mediump mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\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;\n#if USE_ALPHA_TEST\n#endif\nvarying vec4 v_color;\n#if USE_TEXTURE\nvarying vec2 v_uv0;\nuniform sampler2D texture;\n#endif\nvoid main () {\n vec4 color = texture2D(texture, v_uv0);\n float _r = color.r * 0.393 + color.g * 0.769 + color.b * 0.189;\n float _g = color.r * 0.349 + color.g * 0.686 + color.b * 0.168;\n float _b = color.r * 0.272 + color.g * 0.534 + color.b * 0.131;\n color = vec4(_r, _g, _b, color.a);\n gl_FragColor = color;\n}"},"builtins":{"globals":{"blocks":[{"name":"CCGlobal","defines":[]}],"samplers":[]},"locals":{"blocks":[{"name":"CCLocal","defines":[]}],"samplers":[]}},"defines":[{"name":"USE_TEXTURE","type":"boolean","defines":[]},{"name":"CC_USE_MODEL","type":"boolean","defines":[]},{"name":"USE_ALPHA_TEST","type":"boolean","defines":[]}],"blocks":[{"name":"ALPHA_TEST","members":[{"name":"alphaThreshold","type":13,"count":1}],"defines":["USE_ALPHA_TEST"],"binding":0}],"samplers":[{"name":"texture","type":29,"count":1,"defines":["USE_TEXTURE"],"binding":30}],"record":null,"name":"brown|vs|fs"}]},{"__type__":"cc.Material","_name":"brown","_effectAsset":{"__uuid__":"ddOoQX11JM8ZxF+e48C/hY"},"_techniqueData":{"0":{"defines":{"USE_TEXTURE":true,"USE_ALPHA_TEST":false},"props":{}}}}] |