cookie jar Posted April 8 Posted April 8 Hey everyone, I made 6 skybox textures and a shader like several tutorials on the internet said. Here's my shader: textures/skies/shsky { qer_editorimage textures/skies/sky.tga surfaceparm sky surfaceparm noimpact surfaceparm nomarks notc q3map_nolightmap skyParms textures/skies/shsky 1024 - } } Sadly the skybox doesn't work and when i load the map i just get the missing grey-white texture instead. The skybox textures size is 1024x1024 so that shouldn't be a problem. I also tried changing the shader: tried changing 'sky.tga' to the name of one of my skybox textures; tried lowering the skyParms value; tried changing 'sky.tga' to 'sky.jpg'. So far nothing has worked. Anyone know what the problem could be?
Solution NAB622 Posted April 8 Solution Posted April 8 Let's start with the obvious, it looks like you have a tailing brace at the end of your shader. I'd start by removing that. 2 minutes ago, jo_the_rooster said: textures/skies/shsky 1024 - } } <--
cookie jar Posted April 8 Author Posted April 8 11 minutes ago, NAB622 said: Let's start with the obvious, it looks like you have a tailing brace at the end of your shader. I'd start by removing that. This is very weird because i thought this is how you 'close' the shader and it worked for other shaders i made so i didn't really pay attention to this. But yeah i fixed that and it worked. Thanks! NAB622 likes this
NAB622 Posted April 8 Posted April 8 The reason it works on other shaders is probably because there is a map { } section in them. Skyboxes do not have one, therefore just one brace is needed to close the shader. cookie jar likes this
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now