diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-07-21 17:20:35 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-07-21 17:20:35 +0400 |
commit | e3c6ae9b89d1d0c7bb6957f81b9fd9a89477b2d0 (patch) | |
tree | 9a50b247676dd1f3b0abe3cea40cc0773161dae3 /source/blender/blenloader/intern/readfile.c | |
parent | ea0b015b0a1c73fb1899a4d9040704a7d85fda9c (diff) |
2.5: Texture Filtering
Patch by Alfredo de Greef with high quality image texture filters.
This adds 3 new filters:
* SAT: Summed Area Tables. This is like mipmaps, but using somewhat
more memory avoids some artifacts.
* EWA: Ellipitical Weighted Average, anisotropic filter.
* FELINE: Fast elliptical lines for anisotropic texture mapping.
The one change I made to this was to try to fix an alpha/premul
problem, hopefully I didn't break anything, it looks compatible
with the existing filter now for me.
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index c43c720bad0..6da444bc88e 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -9273,6 +9273,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main) World *wo; Object *ob; Material *ma; + Tex *tex; Scene *sce; ToolSettings *ts; int i; @@ -9349,6 +9350,11 @@ static void do_versions(FileData *fd, Library *lib, Main *main) } } + /* texture filter */ + for(tex = main->tex.first; tex; tex = tex->id.next) + if(tex->afmax == 0) + tex->afmax= 8; + for(ma = main->mat.first; ma; ma = ma->id.next) { if(ma->mode & MA_HALO) { ma->material_type= MA_TYPE_HALO; |