i set on a map a sky but how do i set a sun. Could someone tell it to me in steps.
Sun
http://shaderlab.com/q3map2/shader_manual/ch3.html#sun
// q3map_sun <red> <green> <blue> <intensity> <degrees> <elevation>
textures/fueldump/fueldumpsky
{
qer_editorimage textures/skies/fueldump_clouds.tga
q3map_lightrgb 0.8 0.9 1.0
q3map_skylight 85 3
q3map_sun 1 .95 .9 200 210 28
skyparms - 200 -
surfaceparm nodlight
surfaceparm noimpact
surfaceparm nolightmap
surfaceparm sky
{
map textures/skies/fueldump_clouds.tga
rgbGen identity
}
{
map textures/skies/fueldump_clouds.tga
blendfunc blend
rgbGen identity
tcMod scroll 0.0005 0.00
tcMod scale 2 1
}
}
textures/skies/sd_goldrush
{
qer_editorimage textures/skies/sky_8.tga
q3map_skylight 65 3
q3map_sun 0.3 0.3 0.45 60 35 45
nocompress
skyparms - 200 -
sunshader textures/skies_sd/full_moon2
surfaceparm noimpact
surfaceparm nolightmap
surfaceparm sky
skyparms textures/skies_sd/wurzburg_env/sky 512 -
{ fog off
map textures/skies_sd/goldrush_clouds.tga
tcMod scale 5 5
tcMod scroll 0.0015 -0.003
rgbGen identityLighting
}
{ fog off
map textures/skies/nightsky1.jpg
tcMod scale 10 10
blendfunc add
rgbGen identityLighting
}
{
fog off
clampmap textures/skies_sd/goldrush_mask.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
tcMod scale 0.956 0.956
tcMod transform 1 0 0 1 -1 -1
// rgbGen identityLighting
//rgbGen const ( 0.6 0.6 0.6 )
rgbGen const ( 0.4 0.4 0.4 )
}
}
It’s all in the shader.
I think whats he getting at is how do you do the sky in general not just sun.
Apply a shader such as the battery sky shader to the top and all 4 insides of your box map and that will at first look all tiled and crap but when its compiled it will form the sky that you see in the battery map.
the sky shader for the battery map has a sun in it like EB showed.
If you need help making sky shaders search for it, its been covered many times on this forum.
<DJ>