GtkRadiant/Creating sky shaders

If you have experimented a bit with the skies that come with your game, but none of them fitted to your map, or you simply just want to make your own sky for fun, you will need to create a sky shader as well as six images.

Lets start with the images since they are far harder to create. As already said, a skybox consists of six images, first one for each direction like Back, Front, Left and Right as well as one Up and one Down Image. I will not go into the details of making those images, since I'm not very good at doing that, but basically, you will have to make sure the Back, Front, Left and Right images line up to each other if you don't want some ugly lines in the corners.

Also make sure that the Up image lines up with all the other images, or you will also have some ugly lines there. Usually, the Down image doesn't need to be very good, since you want to avoid the possibility to look at it, since it gives the map a "floating" look. If you make sure the down image cant be seen, you can make it one colored or so... anyway, when you have made all these images, name them: nameofsky_bk, nameofsky_ft, nameofsky_rt, nameofsky_lf, nameofsky_up, and nameofsky_dn where you change nameofsky to whatever you like. The file format can be jpg (non progressive) or tga (some games also support png).

The shader should look like the following:

To add a scrolling cloudlayer, you must add a texture stage after the main body, like so: Note: You will get an error if you have many layers as the game can not handle it. If you get any errors, remove cloudlayer stages.