Shader problem


(Victorianetza) #1

hello everyone… i have my shader for city atmosphere, but i trasnformed the map to snowy one… so i had to change the pavement to snow, but i does not work. The thing is that the shader appears to be no shader, it is only a texture, so i need help… how to fix it, so i can plant mines & hear the snowy steps… here’s the code:

textures/sofia/terrain_0
{	
	q3map_lightmapsamplesize 64
	q3map_lightmapaxis z
	q3map_texturesize 256 256
	q3map_tcGen ivector ( 128 0 0 ) ( 0 128 0 )
	surfaceparm snowsteps 
	surfaceparm landmine
	{
		map textures/stone/mxsnow2.tga
		rgbgen identity
	}
	{
		lightmap $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
	{
		map textures/detail_sd/snowdetail.tga
		blendFunc GL_DST_COLOR GL_SRC_COLOR
		rgbgen identity
		tcMod scale 5 5
		detail
	}
}

textures/sofia/terrain.vertex
{
	surfaceparm nolightmap
	q3map_novertexshadows
	q3map_forcesunlight
	{
		map textures/snow_sd/snow_var01_big.tga
		rgbGen vertex
	}
}


(Moonkey) #2

Make sure you have your shader listed in shaderlist.txt


(Victorianetza) #3

i did it, but still the same - its a texture not a shader… i think i made a mistake when editing it, so when i get home, i will post the original code… :bored:


(Shallow) #4

Have you recompiled since changing the shader? Any changes to surfaceparms require the map to be recompiled before they will take effect, surface characteristics are baked into the BSP at compile time so just altering the shader afterwards won’t change them.

Delete the .vertex shader, ET doesn’t have a vertex lighting mode like Q3/RTCW so this bit is just bloat.


(Victorianetza) #5

ok i will do what u are saying, but anyway, here’s ,my original shader file

textures/sofia/terrain_0
{
	q3map_lightmapsamplesize 64
	q3map_lightmapaxis z
	q3map_texturesize 256 256
	q3map_tcGen ivector ( 128 0 0 ) ( 0 128 0 )
	{
		map textures/sofia/courtyard_brick2.jpg
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		tcGen lightmap
	}
}

textures/sofia/terrain.vertex
{
	{
		map textures/sofia/courtyard_brick2.jpg
		rgbGen vertex
	}
}

so, anybody?