How can I get a skybox working in a viewport?

Hello! I am currently making an in-game screenshot system, and it works pretty well, except the skybox doesn’t work. Does anyone know how to make skyboxes work with viewports? Thanks! WE

P.S. world models are already in use.

I think you have to use a decal on a block that’s really big behind the map so that it covers the whole viewport and btw, loading the whole map into a viewport might be bad for performance but maybe not, i’m not sure

I think what most people do is use an inversed cube or sphere mesh with skybox images.

You’ll have to update the position of the fake-skybox to move with the camera, that way the sky appears to not move to the user.

Here’s a post that should have what you need:

1 Like