support for alpha-tested models

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1890 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-05-06 20:10:55 +00:00
parent cee24ed8de
commit 2bb7a48296
5 changed files with 35 additions and 8 deletions
+2 -2
View File
@@ -38,11 +38,11 @@ struct dynent;
struct model
{
bool cullface;
float translucency, scale;
float alphatest, translucency, scale;
vec translate;
int batch;
model() : cullface(true), translucency(0.25f), scale(1), translate(0, 0, 0), batch(-1) {}
model() : cullface(true), alphatest(0.9f), translucency(0.25f), scale(1), translate(0, 0, 0), batch(-1) {}
virtual ~model() {}
virtual bool load() = 0;