Blur.js 389 Bytes
Newer Older
1 2
const GL = require("gl-react");
const React = GL.React;
3 4
const Blur1D = require("./Blur1D");

5 6
module.exports = GL.createComponent(({ width, height, factor, children }) =>
    <Blur1D width={width} height={height} direction={[ factor, 0 ]}>
7 8 9
      <Blur1D width={width} height={height} direction={[ 0, factor ]}>
        {children}
      </Blur1D>
10 11 12 13
    </Blur1D>
, {
  displayName: "Blur"
});