-
Notifications
You must be signed in to change notification settings - Fork 119
Add Shockwave effect #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
enhancement
New feature or request
Comments
it breaks at the moment due to this:
even when you pass dk what's the issue |
Same here tried to manually explode it but it throws the above error. Any ideas? |
Noticed this from a question. Effect passes usually require a camera as the first constructor argument, then a list of parameters: import { forwardRef } from 'react'
import { extend, useThree } from '@react-three/fiber'
import { ShockWaveEffect } from 'postprocessing'
extend({ ShockWaveEffect })
const ShockWave = forwardRef(function ShockWave({ args = [], ...props }, ref) {
const camera = useThree((state) => state.camera)
return <shockWaveEffect {...props} ref={ref} args={[camera, ...args]} />
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
docs reference: https://vanruesc.github.io/postprocessing/public/docs/class/src/effects/ShockWaveEffect.js~ShockWaveEffect.html
The text was updated successfully, but these errors were encountered: