- Home /
Unity URP Skybox shader Graph not wrapping properly
Hello, im having this weird problem where when creating a skybox shader for the Skybox Material in the Lighting > Environment tab. I have followed all the tutorials i could find and noone is having this problem. There is a visible seem in the middle of the sky that goes all arround the sky(see picture) , it looks like its not trying to wrap onto a sphere but rather onto a plane but i dont know how to fix it. here are my environment sky settings:
. dont know if this information is important but as for the shader graph's UV im using a position node set to world position and having it go through a normalize node(exactly as in all the tutorials), but no matter what i change it too the seem is still there so that tells me its not a shader problem. Ive gone through all the settings and nothing seems to work. Help would be very appreciated!
Answer by andrew-lukasik · Feb 12 at 08:56 PM
The source of the problem here is that Voronoi node accepts float2
UV input.
When you pass float3
position there - it will become a float2( pos.x , pos.y )
. Resulting in, basically, a planar projection.
I certainly noticed that some tutorials avoid addressing or even straight-up communicating this detail.
Here is something that might help you, maybe. This graph creates a skybox UV that wraps nicely around the horizons and tries to hide all the ugly distortions far below the horizon.
Your answer
![](https://koobas.hobune.stream/wayback/20220613052929im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to made a normal skybox with a rectangle part of solid color 0 Answers
Dynamic Skybox 2 Answers
creating skybox material problem 1 Answer
Strumpy shader - Overlay(Add) two textures for Unlit 1 Answer
Skybox keeps crashing my app? 1 Answer