How to use the gl-react.Uniform.Resolution function in gl-react

To help you get started, we’ve selected a few gl-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gre / gl-react-blur / src / BlurV1D.js View on Github external
const BlurV1D = ({
  width,
  height,
  map,
  pixelRatio,
  direction,
  children: t
}) => (
  
);
github gre / gl-react-blur / src / Blur1D.js View on Github external
const Blur1D = ({ width, height, pixelRatio, direction, children: t }) => (
  
);
github gre / gl-react-image / src / index.js View on Github external
const { props } = this;
    const { source, resizeMode, ...rest } = props;

    if (resizeMode === "cover" || resizeMode === "free") {
      const center = props.center || [0.5, 0.5];
      const zoom = props.zoom || 1;
      delete rest.center;
      delete rest.zoom;
      return (
        
      );
    }

    if (resizeMode === "contain") {
      return (