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 | |
---|---|---|---|---|
Do Cube cameras / WebGLRenderTargetCube support texture encodings when writing/rendering? | 0 | 645 | February 22, 2018 | |
Strange behavior when using CubeRenderTarget Texture as a material's color map | 0 | 484 | October 20, 2022 | |
How to get CubeTexture from CubeCamera to show properly on MeshStandardMaterial | 2 | 408 | November 3, 2021 | |
Cube shader Bug? | 3 | 528 | October 15, 2020 | |
How to use Cubemape with samplerCube In a Shader? | 3 | 3499 | July 6, 2020 |