[1,["ec3dVtfsRD+ItMcIT92kMA"],["_effectAsset"],[["cc.Material",["_name","_props","_states","_defines"],-1],["cc.EffectAsset",["_name","shaders","techniques"],0]],[[0,0,1,2,3,5],[1,0,1,2,4]],[[[[0,"Bloom",[{}],[{"rasterizerState":{},"depthStencilState":{},"blendState":{"targets":[{}]}}],[{}]]],0,0,[0],[0],[0]],[[[1,"../Game/Resource/Game/Resource/Material/Bloom",[{"hash":1318857090,"name":"../Game/Resource/Game/Resource/Material/Bloom|vs|fs","blocks":[{"name":"a","stageFlags":1,"binding":0,"members":[{"name":"cc_matViewProj","type":25,"count":1},{"name":"cc_matWorld","type":25,"count":1}],"defines":[]},{"name":"b","stageFlags":16,"binding":1,"members":[{"name":"cc_time","type":16,"count":1}],"defines":[]}],"samplerTextures":[],"samplers":[],"textures":[],"buffers":[],"images":[],"subpassInputs":[],"attributes":[],"fragColors":[],"descriptors":[{"rate":0,"blocks":[],"samplerTextures":[],"samplers":[],"textures":[],"buffers":[],"images":[],"subpassInputs":[]},{"rate":1,"blocks":[{"name":"a","stageFlags":1,"binding":0,"members":[{"name":"cc_matViewProj","type":25,"count":1},{"name":"cc_matWorld","type":25,"count":1}],"defines":[]},{"name":"b","stageFlags":16,"binding":1,"members":[{"name":"cc_time","type":16,"count":1}],"defines":[]}],"samplerTextures":[],"samplers":[],"textures":[],"buffers":[],"images":[],"subpassInputs":[]},{"rate":2,"blocks":[],"samplerTextures":[],"samplers":[],"textures":[],"buffers":[],"images":[],"subpassInputs":[]},{"rate":3,"blocks":[],"samplerTextures":[],"samplers":[],"textures":[],"buffers":[],"images":[],"subpassInputs":[]}],"glsl1":{"vert":"\nprecision highp float;\n  uniform highp mat4 cc_matViewProj;\n  uniform highp mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\nattribute float a_dist;\nvarying float v_dist;\nvec4 vert () {\n  vec4 pos = vec4(a_position, 1);\n  pos = cc_matViewProj * cc_matWorld * pos;\n  v_color = a_color;\n  v_dist = a_dist;\n  return pos;\n}\nvoid main() { gl_Position = vert(); }","frag":"\n#ifdef GL_OES_standard_derivatives\n#extension GL_OES_standard_derivatives: enable\n#endif\n  uniform highp vec4 cc_time;\nprecision highp float;\nvarying vec4 v_color;\nvarying float v_dist;\nfloat Remap01(float a, float b, float t) {\n  return (t-a) / (b-a);\n}\nfloat Remap(float a, float b, float c, float d, float t) {\n  return Remap01(a, b, t) * (d-c) + c;\n}\nfloat Pulse(float x) {\n  x *= 0.4;\n  x = x + 0.5;\n  float k = 16.;\n  return pow(4.0 * x * (1.0 - x), k);\n}\nvec4 frag () {\n  float alpha = abs(v_dist);\n  float outlineWidth = 1.0;\n  float centerAlpha = 0.;\n  float alphaDist = abs(alpha - centerAlpha);\n  float mask = smoothstep(outlineWidth, 0., alphaDist);\n  vec4 col = vec4(vec3(1.,0.,1.), mask);\n  float brightness = Remap(0., 1., 0.6, 1.0, abs(sin(cc_time.x * 2.5)));\n  col.rgb += Pulse(alphaDist) * brightness;\n  col.rgb *= col.a;\n  return col;\n}\nvoid main() { gl_FragColor = frag(); }"},"builtins":{"globals":{"blocks":[],"samplerTextures":[],"buffers":[],"images":[]},"locals":{"blocks":[],"samplerTextures":[],"buffers":[],"images":[]},"statistics":{"CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS":8,"CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS":1}},"defines":[]}],[{"passes":[{"program":"../Game/Resource/Game/Resource/Material/Bloom|vs|fs","blendState":{"targets":[{"blend":true,"blendSrc":1,"blendDst":4,"blendSrcAlpha":1,"blendDstAlpha":4}]},"rasterizerState":{"cullMode":0},"depthStencilState":{"depthTest":false,"depthWrite":false}}]}]]],0,0,[],[],[]]]]
