mirror of
https://github.com/gre/gl-react.git
synced 2026-01-25 16:43:36 +00:00
Merge branch 'master' into gh-pages
This commit is contained in:
commit
102852172c
@ -9,19 +9,17 @@ const shaders = GL.Shaders.create({
|
||||
});
|
||||
|
||||
module.exports = GL.createComponent(
|
||||
({ width, height, direction, minBlur, maxBlur, blurMap, offset, children }) =>
|
||||
<GL.View
|
||||
shader={shaders.blur1D}
|
||||
width={width}
|
||||
height={height}
|
||||
uniforms={{
|
||||
direction,
|
||||
minBlur,
|
||||
maxBlur,
|
||||
blurMap,
|
||||
offset,
|
||||
resolution: [ width, height ]
|
||||
}}>
|
||||
<GL.Uniform name="t">{children}</GL.Uniform>
|
||||
</GL.View>,
|
||||
{ displayName: "Blur1D" });
|
||||
({ width, height, direction, children }) =>
|
||||
<GL.View
|
||||
shader={shaders.blur1D}
|
||||
width={width}
|
||||
height={height}
|
||||
uniforms={{
|
||||
direction,
|
||||
resolution: [ width, height ]
|
||||
}}>
|
||||
<GL.Uniform name="t">{children}</GL.Uniform>
|
||||
</GL.View>
|
||||
, {
|
||||
displayName: "Blur1D"
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user