- Home /
WebGL Build Tearing Skybox
Hello! So after exporting my game to WebGL I've noticed a tearing effect. Anyone know what the cause is or how to fix it? Also, I'm running the game on Itch.io on a Chrome browser, if that helps. Does it have to do with the vSync or AA settings?
Answer by Bunny83 · Sep 21, 2016 at 07:57 AM
Uhm, your skybox looks just plain black (except for the vertical lines). Why do you even use a skybox and not simply clear with black?.
If the skybox is not empty, what does it contain? Where does it come from? What size are its images? If you created them yourself, make sure you don't forget some pixels at the corners / edges.
Besides that i have no idea what the problem might be. Maybe some pixels are transparent? (If that even has any influence on skybox textures). It's hard to predict the outcome when you don't know the "input".
At a closer look you can see stars in it ... It seems to be a cubemap without any 'margin pixels' set to black. So I guess bunny is right and you just have to fill the rest of the texture with black or at least add some black pixels at the edges. Another reason could be that there are 'stars' drawn exactly on the edges/corners of the map.
Your answer
Follow this Question
Related Questions
Blit into Texture2DArray slice not working in WebGL 0 Answers
Screen Tears in Unity when manipulating objects 1 Answer
Hey guys can anyone tell me whether is it possible to have this type of graphics in unity webgl ? 0 Answers
WebGL simple 2D game tearing 0 Answers
webGL standard shader displays badly 0 Answers