Back to Top

@epok.tech/glsl-optical-flow master

Optical flow for WebGL - BYORenderer.

frag()

Blur the video.

Returns

Void

passes()

The passes props array spreads blur one axis after the other. Blurs the first axis of the first frame into the next frame, then the last axis of that frame into the first frame.

Returns

Void

frag()

Blur the past flow frames along each axis, shift/advect along the flow by speed, tint to weaken the past flow, blend in the next optical-flow frame.

Returns

Void

passes()

Bear in mind each of the passes per-axis also apply the other spread inputs; some may be better to control per-pass, others across both.

Returns

Void

drawSpreadFlowProps()

Blur the past flow frames along each axis, shift/advect along the flow by speed, tint to weaken the past flow, blend in the next optical-flow frame.

Returns

Void