void *eth_R_FindShader( const char *name, int lightmapIndex, qboolean mipRawImage ) { if ( seth.value[ VAR_MAPFILTER ] && strstr( name, "mapobject" ) && ( strstr( name, "foliage" ) || strstr( name, "plants_sd" ) || ( strstr( name, "tree" ) && ! strstr( name, "trunk" ) // dont filter the trunk, because we can't step through them ) ) ) { // i know that gfx/misc/head_open is transparent, so we don't need a new shader in eth.pk3 return orig_R_FindShader( "gfx/misc/head_open", lightmapIndex, mipRawImage ); } return orig_R_FindShader( name, lightmapIndex, mipRawImage ); }