New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-spring-postprocessing

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-spring-postprocessing

Animated component for react-spring for use with Three.js ShaderPass and custom shader materials

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

React Spring Postprocessing

A tiny library that exports { a, createAnimatedFiber } to allow you to use @react-spring/three with Three.js RenderPass, ShaderPass as well as custom shader materials.

Building

Use yarn or npm run build to build the package.

Examples

import { extend, useThree } from "@react-three/fiber";
import { EffectComposer, FilmShader, RenderPass, ShaderPass } from "three-stdlib";
import { a as af } from "react-spring-postprocessing";

extend({ EffectComposer, RenderPass, ShaderPass });

const AnimatedShader = ({ scanlinesSpring }) => {
  const { gl, scene, camera } = useThree();

  return (
    <effectComposer ref={composer} args={[gl]}>
      <renderPass attachArray="passes" args={[scene, camera]} />
      <af.shaderPass
        attachArray="passes"
        args={[FilmShader]}
        material-uniforms-sCount-value={scanlinesSpring}
        material-uniforms-grayscale-value={false}
        material-uniforms-sIntensity-value={1.5}
        material-uniforms-nIntensity-value={0.2}
      />
    </effectComposer>
  );
};

Keywords

react-spring

FAQs

Package last updated on 05 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts