surfaceparm lightfilter and JK2 ?


(Zombie) #1

Hi!,

I’m trying to use lightfilter in Jedi-Knight2, but it does not work :frowning:

I’m using shader like this:


textures/myfolder/filter1 
{ 
	qer_editorimage textures/myfolder/window
//	surfaceparm trans 
	cull none 
	surfaceparm lightfilter 
	surfaceparm Alphashadow
	qer_trans 0.6 
	surfaceparm	nonsolid
	q3map_nolightmap
	{ 
		map textures/myfolder/window
//		blendfunc gl_dst_color gl_zero 
		blendfunc gl_ONE gl_ONE
	} 
} 

Kompiling with LIGHT -simples 2 -fast.

But after compiling, there are no colored shadows on the wall :frowning:
What the hell i’m doing wrong ?


(ydnar) #2

Just use surfaceparm lightfilter, not alphashadow. If your image doesn’t have a fully white alpha channel, then alphashadows is causing it to cast an opaque shadow.

To recap, remove this line:

surfaceparm alphashadow

y


(Zombie) #3

THX ydnar!, it works now :smiley: