You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m trying to get a mirror-like effect on the floor for my scene.
I’m using effect composer to use the SSR effect, and so, having a floor that will mirror the lights and the objects on my scene. But the problem is, my objects also get the light. They also have the mirror effect but I don’t want it. They are planeBufferGeometry, with custom shaderMaterial.
I tried with some attributes like receiveShadows, but not working.
I’m maybe searching for a way to select only the meshes on which I want the effect to apply. I saw that in ThreeJS, there is something like “selects” for SSR Pass, is there anything like this in Three Fiber ?
This discussion was converted from issue #3301 on August 10, 2024 10:19.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey here !
Hope you are doing well,
I’m trying to get a mirror-like effect on the floor for my scene.
I’m using effect composer to use the SSR effect, and so, having a floor that will mirror the lights and the objects on my scene. But the problem is, my objects also get the light. They also have the mirror effect but I don’t want it. They are planeBufferGeometry, with custom shaderMaterial.
I tried with some attributes like receiveShadows, but not working.
I’m maybe searching for a way to select only the meshes on which I want the effect to apply. I saw that in ThreeJS, there is something like “selects” for SSR Pass, is there anything like this in Three Fiber ?
For some code, here is the global Effect Composer
here is the effect of R3F that work well to create the mirror effect
here is one of my mesh
If you have the solution, any idea, or think that it's not the right way to achieve mirror effect, let me know,
Thank you all ! Have a great day !
Beta Was this translation helpful? Give feedback.
All reactions