Shader Help
Posted: Sun Feb 05, 2012 2:15 pm
Hey Guys!
I've this on a skybox texture:
The skybox has moving clouds and some thunder lightnings showing up from time to time.
My problem is those thunders last longer than I need (more or less 6/7 seconds atm).
I want to make them come faster one after the others, how can I do that?
(does it have to do with the sin function?)
The Thunder part is below:
I've this on a skybox texture:
Code: Select all
textures/skies/hip_grimm
{
qer_editorimage env/hip_grimm/grimmnight_ft.tga
q3map_lightsubdivide 768
q3map_backsplash 0 0
q3map_sunEXT .192 .191 .181 25 0 23 3 16
q3map_skylight 100 3
q3map_lightmapFilterRadius 0 8
q3map_noFog
surfaceparm sky
surfaceparm noimpact
surfaceparm nolightmap
surfaceparm nodlight
skyparms env/hip_grimm/grimmnight - -
nopicmip
nomipmaps
{
map env/hip_grimm/clouds.tga
tcMod scale 4 4
tcMod scroll 0.012 0.012
blendFunc GL_ONE GL_ONE
}
{
animMap .2 env/hip_grimm/thunderbolt_1.tga textures/lotr_textures/black.tga textures/lotr_textures/black.tga env/hip_grimm/thunderbolt_2.tga env/hip_grimm/thunderbolt_3.tga textures/lotr_textures/black.tga textures/lotr_textures/black.tga
blendFunc add
rgbGen identity
rgbGen wave Sin 0 1 0 1.1
}
}
The skybox has moving clouds and some thunder lightnings showing up from time to time.
My problem is those thunders last longer than I need (more or less 6/7 seconds atm).
I want to make them come faster one after the others, how can I do that?
(does it have to do with the sin function?)
The Thunder part is below:
Code: Select all
{
animMap .2 env/hip_grimm/thunderbolt_1.tga textures/lotr_textures/black.tga textures/lotr_textures/black.tga env/hip_grimm/thunderbolt_2.tga env/hip_grimm/thunderbolt_3.tga textures/lotr_textures/black.tga textures/lotr_textures/black.tga
blendFunc add
rgbGen identity
rgbGen wave Sin 0 1 0 1.1
}