Shader bug?


(Igloo) #1

Hello,

I want to know why this shader does not work correctly:

textures/myshader/sky
{
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 )
}
}

As you can see this is the textures/skies/sd_goldrush shader copied to my file because I want to modify it a little bit. I compile the map, the light from the sky is emitted correctly, everything seem to work - but? The sky is orange-black! The texture can’t be loaded :confused:

The error message is:
“WARNING: Couldn’t find a shader image for…”

Something like this.

Do you know what’s going on?

Greetings,
Igloo


(masterkiller) #2

The shader can’t find somes textures.
Look at the end of path after “WARNING: Couldn’t find a shader image for…” to find the texture missing.