diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2011-12-15 17:58:09 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2011-12-15 17:58:09 +0400 |
commit | 6ccc605660ea0b45b723016e82b3635f8d5cc707 (patch) | |
tree | 7def5ad95056f9c36a778d6de25565b420dfe048 /source/blender/windowmanager | |
parent | 030694b26041d793ca53aa4282e3e4e2d98f559f (diff) |
Bicubic bump map filtering.
This commit introduces bicubic bump map capabilities for the viewport for OpenGL 3.0+ capable GPUs.
To use the functionality change the bump mapping method to "best quality"
Previous "best quality" setting becomes "medium quality" now.
For non OpenGL 3.0 GPUs this becomes the same as "medium quality"
Also:
* added tooltip descriptions to the bump method settings.
* modified the shader to ommit extraneous matrix multiplications for matrices already provided by OpenGL.
Bicubic shader by Morten Mikkelsen. Thanks a lot!
Oh...and FIRST!
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_init_exit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index 2695f3d680d..7026323bf97 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -176,6 +176,7 @@ void WM_init(bContext *C, int argc, const char **argv) GPU_extensions_init(); GPU_set_mipmap(!(U.gameflags & USER_DISABLE_MIPMAP)); GPU_set_anisotropic(U.anisotropic_filter); + GPU_code_generate_glsl_lib(); UI_init(); } |