Workbench: Support node texture "closest" interpolation option
authorClément Foucault <foucault.clem@gmail.com>
Sun, 23 Dec 2018 14:20:06 +0000 (15:20 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Fri, 11 Jan 2019 15:00:23 +0000 (16:00 +0100)
commit9177bb33f68f66609b29e1e53a90552cae8026b3
tree666aacdcceabeadb05c8cb6e890ab84be2a62069
parent1459a7048958de229f35a23a1a760c28a06a5f44
Workbench: Support node texture "closest" interpolation option

This makes it possible to paint pixel art using the workbench.

Cubic interpolation is not supported but could be added if needed.
source/blender/draw/engines/workbench/shaders/workbench_common_lib.glsl
source/blender/draw/engines/workbench/shaders/workbench_forward_transparent_accum_frag.glsl
source/blender/draw/engines/workbench/shaders/workbench_prepass_frag.glsl
source/blender/draw/engines/workbench/workbench_deferred.c
source/blender/draw/engines/workbench/workbench_forward.c
source/blender/draw/engines/workbench/workbench_materials.c
source/blender/draw/engines/workbench/workbench_private.h