Added an option for High Quality image downsampling for OpenGL canvas
1) This option activates a custom shader, which filters the image with a variation of trapezoidal filter using "one-but-nearest" mipmap level. This gives quite decent results, although it might be not perfect from the maths point of view. 2) The patch also sets the default texture size to 256. Otherwise activation of mipmap generation will make the painting with smaller brushes insanely slow. This happens because the mipmap is regenerated for the whole texture every time we change a small portion of it. CCBUG:313502
Showing
- krita/data/shaders/CMakeLists.txt 5 additions, 3 deletionskrita/data/shaders/CMakeLists.txt
- krita/data/shaders/highq_downscale.frag 72 additions, 0 deletionskrita/data/shaders/highq_downscale.frag
- krita/data/shaders/matrix_transform.vert 18 additions, 0 deletionskrita/data/shaders/matrix_transform.vert
- krita/data/shaders/matrix_transform_legacy.vert 0 additions, 0 deletionskrita/data/shaders/matrix_transform_legacy.vert
- krita/data/shaders/simple_texture.frag 12 additions, 0 deletionskrita/data/shaders/simple_texture.frag
- krita/data/shaders/simple_texture_legacy.frag 0 additions, 0 deletionskrita/data/shaders/simple_texture_legacy.frag
- krita/image/kis_signal_compressor.cpp 5 additions, 0 deletionskrita/image/kis_signal_compressor.cpp
- krita/image/kis_signal_compressor.h 1 addition, 0 deletionskrita/image/kis_signal_compressor.h
- krita/sdk/tests/testutil.h 8 additions, 0 deletionskrita/sdk/tests/testutil.h
- krita/ui/forms/wdgdisplaysettings.ui 5 additions, 0 deletionskrita/ui/forms/wdgdisplaysettings.ui
- krita/ui/kis_config.cc 15 additions, 0 deletionskrita/ui/kis_config.cc
- krita/ui/kis_config.h 4 additions, 0 deletionskrita/ui/kis_config.h
- krita/ui/opengl/kis_opengl.cpp 5 additions, 0 deletionskrita/ui/opengl/kis_opengl.cpp
- krita/ui/opengl/kis_opengl.h 2 additions, 0 deletionskrita/ui/opengl/kis_opengl.h
- krita/ui/opengl/kis_opengl_canvas2.cpp 61 additions, 29 deletionskrita/ui/opengl/kis_opengl_canvas2.cpp
- krita/ui/opengl/kis_opengl_image_textures.cpp 4 additions, 3 deletionskrita/ui/opengl/kis_opengl_image_textures.cpp
- krita/ui/opengl/kis_opengl_image_textures.h 5 additions, 0 deletionskrita/ui/opengl/kis_opengl_image_textures.h
- krita/ui/opengl/kis_texture_tile.cpp 6 additions, 21 deletionskrita/ui/opengl/kis_texture_tile.cpp
- krita/ui/opengl/kis_texture_tile.h 1 addition, 3 deletionskrita/ui/opengl/kis_texture_tile.h
Loading
Please register or sign in to comment