UNPKG

lingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

3 lines (2 loc) 674 B
declare const _default: "#define INV_EULER 0.36787944117144233\n\nalpha = 0.0;\n\n// alpha = velocityDisocclusion < FLOAT_EPSILON ? (alpha + 0.0075) : 0.0;\n// alpha = clamp(alpha, 0.0, 1.0);\n\nbool needsBlur = !didReproject || velocityDisocclusion > 0.5;\n\n#ifdef boxBlur\nif (needsBlur) inputColor = boxBlurredColor;\n#endif\n\nif (alpha == 1.0) {\n outputColor = accumulatedColor;\n} else {\n float m = mix(alpha, 1.0, blend);\n\n // if there's been an abrupt change (e.g. teleporting) then we need to entirely use the input color\n if (needsBlur) m = 0.0;\n\n outputColor = accumulatedColor * m + inputColor * (1.0 - m);\n}\n"; export default _default;