Noted by Desoto: new 'Checker' option for Image repeat could use better

preview.
This commit is contained in:
2004-04-29 16:33:08 +00:00
parent 97f2cf05f5
commit 94e57dbe0d

View File

@@ -598,6 +598,10 @@ static void texture_preview_pixel(Tex *tex, int x, int y, char *rect)
if(texvec[1]>1.0) texvec[1] -= (int)(texvec[1]); if(texvec[1]>1.0) texvec[1] -= (int)(texvec[1]);
} }
} }
else if(tex->extend==TEX_CHECKER) {
texvec[0]= 0.5+1.6*v1*x;
texvec[1]= 0.5+1.6*v1*y;
}
} }
else if(tex->type==TEX_ENVMAP) { else if(tex->type==TEX_ENVMAP) {
if(tex->env) { if(tex->env) {