two buttons making skybox day or night


(forbidden) #1

well the title explains it, how would i go about doing this? i tried making two buttons and making the skyboxes groups but i cant figure out the coding for it


(nUllSkillZ) #2

Could be working with remapshader / remapshaderflush.


(forbidden) #3

a what?
thanks for reply


(-SSF-Sage) #4

Yes it should work as the sky shader is load runtime. But do note that you can not change the light tho. So you would have daylight in night sky. But if you make a “compromise” light then it might be fine. Remember players using r_fastky will not notice any difference, and alot of players are using it.

Remapshader is a script command that you can use to change one shader to another.

So you could change your sky shader with:


remapshader path/to/my/skyshader1 path/to/my/skyshader2    //change from shader1 to shader2
remapshaderflush           //flushes the remapshader command, so it will be loaded

(Berzerkr) #5

About remapshaders:
http://www.splashdamage.com/forums/showthread.php?t=4692

Maybe you have especially to care about this:
http://www.splashdamage.com/forums/showpost.php?p=44042&postcount=6