q3map_baseshader only within one file?


(BlackHawk008) #1

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) #2

The baseshader script must be listed in shaderlist.txt before the shaders that utilize it.

y


(BlackHawk008) #3

Forgot to say that, but it is indeed listed in shaderlist.txt…


(rgoer) #4

Is it listed in shaderlist.txt before the shaders that call it?


(BlackHawk008) #5

Aah, overlooked that ‘before’ :slight_smile:
Anyway…it’s working now…tnx


(QESTUDENT) #6

Nice topic! :banana: :banana: :banana: