shithub: qk1

ref: a5b441d0296071fa3b3eb6a3e7501e781da9cb4d
dir: /d_alpha.c/

View raw version
#include "quakedef.h"

float
alphafor(int flags)
{
	if(flags & (SURF_TELE|SURF_FENCE))
		return 1.0;
	if(flags & SURF_LAVA)
		return r_lavaalpha.value;
	if(flags & SURF_SLIME)
		return r_slimealpha.value;
	return r_wateralpha.value;
}