PDA

View Full Version : q3map_baseshader only within one file?


BlackHawk008
7th October 2003, 13:16
I'm trying to use 'q3map_baseshader' in material shaders for ASE models. The idea is to have one 'clipping' baseshader and one 'nonclipping' baseshader.

The baseshader:

textures/baseshader/noclip
{
q3map_splotchfix
q3map_nonplanar
q3map_forcemeta
}

textures/baseshader/clip
{
q3map_baseShader textures/baseshader/noclip
q3map_clipModel
}


but if i try to use these baseshaders in a shader which is in another file they don't work. They only work if i put these baseshaders in the same file.

The shader using above baseshader (which is in another file):

textures/_test/material_0
{

q3map_baseshader textures/baseshader/clip
cull none
{
map textures/_test/material_0.tga
blendFunc GL_ONE GL_ZERO
rgbGen identity
}
{
map $lightmap
blendFunc filter
rgbGen identity
}
}



So, my question is.... can you only use q3map_baseshader within one file, or am i just doing something wrong?

ydnar
7th October 2003, 15:17
The baseshader script must be listed in shaderlist.txt before the shaders that utilize it.

y

BlackHawk008
7th October 2003, 17:06
Forgot to say that, but it is indeed listed in shaderlist.txt.....

rgoer
7th October 2003, 17:09
Is it listed in shaderlist.txt before the shaders that call it?

BlackHawk008
7th October 2003, 17:46
Aah, overlooked that 'before' :)
Anyway...it's working now....tnx

QESTUDENT
8th October 2003, 09:57
Nice topic! :banana: :banana: :banana: