How can I create a mirror texture in Fragment.glsl that accurately reflects the environment and other meshes?
im working with React Three Fiber
i cannot use MeshReflectMaterial by Drei as i want to deform the mesh using vertex.glsl too
manthrax
2
If you’re gonna be modifying the vertices… you also have to compute normals for reflection to work.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Is there's a possible way to add vertex.glsl to drei meshReflectorMaterial in React Three Fiber? | 1 | 86 | December 28, 2024 | |
| Having problem with using MeshReflectorMaterial | 4 | 2496 | November 16, 2022 | |
| Weird behaviour when using MeshReflectorMaterial in a Blender-exported gltf model | 2 | 527 | October 10, 2023 | |
| Create reflecting material using a baked texture | 4 | 708 | February 20, 2023 | |
| MeshReflectorMaterial in Firefox does not work correctly | 0 | 52 | May 19, 2025 |
