Cubecamera as Texture for a Sphere Geometry => Cube Structure Way Too Visible. .. React Three Fiber

I hope this message finds you well

codesandbox :

I've been following the last tutorial of Yuri Artiukh on noise () to "translate" it in R3F. It's been a blast but i'm confronting one special issue I can't really resolve :

I'm using a CubeCamera to mirror the shader of the background, and it's working fine, the only problem is that the "structure" of the cube is clearly seeable in the sphere. I don't know if it's coming from the fragment shader or the set up of the renderer for the cube camera. Does anyone has any idea how to solve it.

to do so, I use the CubeCamera component from @react-three/drei :

plus a fresnel shader that you can found here :

To show it clearly, I have that :

I want that :

Thanks, Alex

1
Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article