mirror of
https://github.com/gre/gl-react.git
synced 2026-01-18 16:16:59 +00:00
14 lines
397 B
JavaScript
14 lines
397 B
JavaScript
const React = require("react");
|
|
const GL = require("gl-react");
|
|
const Blur1D = require("./Blur1D");
|
|
|
|
module.exports = GL.createComponent(({ width, height, factor, children }) =>
|
|
<Blur1D width={width} height={height} direction={[ factor, 0 ]}>
|
|
<Blur1D width={width} height={height} direction={[ 0, factor ]}>
|
|
{children}
|
|
</Blur1D>
|
|
</Blur1D>
|
|
, {
|
|
displayName: "Blur"
|
|
});
|