Hi there, I’m trying to use the CubeTexture generated from CubeCamera in a fragment shader with textureCube() function. But I got black screen. When I load a CubeMap with local texture image, the fragment shader works well. The CubeTexture also works great with MeshStandardMaterial. My abstract version of code and issue can be seen here https://codepen.io/Lee-Yuguang/pen/ExOzpdM When it’s working, the object should be blue. Can someone point me the problem in my code please?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Strange behavior when using CubeRenderTarget Texture as a material's color map | 0 | 506 | October 20, 2022 | |
| Some problem using cubeCamera generating reflections | 3 | 2051 | November 12, 2020 | |
| Is the CubeCamera not working? | 4 | 1308 | May 29, 2019 | |
| Cube shader Bug? | 3 | 546 | October 15, 2020 | |
| Bad texture quality on mobile devices with CubeCamera | 4 | 1551 | May 14, 2021 |