-
Hello, I'm making a realistic Sun using computed shader but i'm facing a little problem. I made a codesandbox of the concerned part https://codesandbox.io/s/goofy-currying-xb95r . First, in the component SunTexture I use a cubeCamera to get the rendered shader as a texture. Both components rendered properly but the SunObject doesn't seem to render the way I expected. (I add Perf module to make debuging easier) When I console log information of the SunObject shader, the one containing uPerlin, I can see that the uPerlin value is as I expected, a cubeTexture. I'm sure there's a mistake with the render order or something like that but i really can't figure it out. If someone has an hint or an idea :). Thanks in advance for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Wow I got an illumination this morning. I solved my problem. There wasn't any problem, just wrong size for the sphere geometry of SunTexture component. I reduce its size and magic !!! no my Sun looks like a boiling Helium star instead of a perfectly rounded apricot. Hope my case can be useful for someone who's encounter the same problem. Thanks for your amazing job. |
Beta Was this translation helpful? Give feedback.
Wow I got an illumination this morning. I solved my problem.
There wasn't any problem, just wrong size for the sphere geometry of SunTexture component. I reduce its size and magic !!! no my Sun looks like a boiling Helium star instead of a perfectly rounded apricot.
Hope my case can be useful for someone who's encounter the same problem.
Thanks for your amazing job.
Cheers.