motionBlur.glsl.js 339 字节
export default "@export ecgl.motionBlur.fragment\n\nuniform sampler2D lastFrame;\nuniform sampler2D thisFrame;\n\nuniform float percent: 0.7;\n\nvarying vec2 v_Texcoord;\n\nvoid main()\n{\n vec4 tex0 = texture2D(lastFrame, v_Texcoord);\n vec4 tex1 = texture2D(thisFrame, v_Texcoord);\n\n gl_FragColor = tex0 * percent + tex1;\n}\n\n@end";