Jump to content

Home

Alpha shadows arn't casting..


Scarlett

Recommended Posts

For some reason, the map compiler (sof2map) isn't taking the alpha channel into consideration for the shadow casting, even though i have it setup correctly ..as far as i know anyway.

 

Here's the shader i'm trying to do this with:

Textures/Test/MetalGrate01
{
q3map_alphashadow
cull none
  	{
	map Textures/Test/MetalGrate01.tga
	blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GE128
		depthWrite
	rgbGen identity
}
{
	map $lightmap
	rgbGen identity
	blendFunc GL_DST_COLOR GL_ZERO
	depthFunc equal
}
}

 

Is there something else that needs to be done for this to work correctly? I've been at this for hours..

Link to comment
Share on other sites

Alright, i've found q3map2 but I'm having a problem with it. Where exactly does it look for the 'Shaders', or even the 'Base' directory? It doesn't seem to be finding them.. and it doesn't tell you where it's looking for them, so....

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...