Apply deformation shaders to Drei <Image /> component #1838
Unanswered
MrUltimate
asked this question in
Q&A
Replies: 1 comment 4 replies
-
could you explain what you mean with deformation? i see no deformation on aristidebenoist.com, it's just a rotation around the x axis. the last box you linked doesn't run for me. generally shaders aren't modular. but you can copy the image component into your project and extend it. |
Beta Was this translation helpful? Give feedback.
4 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I'm trying to use this code sandbox by @drcmda as a base for my project slider: https://codesandbox.io/s/horizontal-tiles-l4klb
However, I'm trying to figure out the best way possible to apply deformations to these images. Is it possible to apply deformation shaders to Drei's
<Image />
component? I do see a basic fragment shader being applied when I logref.current.material
. My goal is to be able to achieve something like: aristidebenoist.com/Here's a messy code sandbox I'm working with: https://codesandbox.io/s/thirsty-dubinsky-tsggx?file=/src/components/App.jsx
I've tried combining this with this old code sandbox I've found by @gsimone : https://codesandbox.io/s/r3f-slider-n9y4n but unfortunately that seems to be over complicating it and I haven't found a way to apply scroll delta to the shader without my browser crashing.
Beta Was this translation helpful? Give feedback.
All reactions