()
| 60 | }; |
| 61 | |
| 62 | const getModeProps = () => { |
| 63 | const baseProps = { |
| 64 | scale, |
| 65 | ior, |
| 66 | thickness, |
| 67 | chromaticAberration, |
| 68 | anisotropy |
| 69 | }; |
| 70 | |
| 71 | if (mode === 'bar') { |
| 72 | return { |
| 73 | ...baseProps, |
| 74 | transmission, |
| 75 | roughness, |
| 76 | color: '#ffffff', |
| 77 | attenuationColor: '#ffffff', |
| 78 | attenuationDistance: 0.25 |
| 79 | }; |
| 80 | } |
| 81 | |
| 82 | return baseProps; |
| 83 | }; |
| 84 | |
| 85 | const propData = useMemo( |
| 86 | () => [ |