diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-05-20 15:57:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-05-20 16:17:50 +0300 |
commit | 8e3cefd0d5f9d6ec874012db68f5c4b497af9d35 (patch) | |
tree | 3b3d757628cad8cef3091cd71ae68e2d488dea5c /source/blender/draw/modes/shaders/object_empty_image_frag.glsl | |
parent | 65aab6cdae822822122f5e180baf10e39f600bf2 (diff) |
DwM: Object mode empty-image support
Diffstat (limited to 'source/blender/draw/modes/shaders/object_empty_image_frag.glsl')
-rw-r--r-- | source/blender/draw/modes/shaders/object_empty_image_frag.glsl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/blender/draw/modes/shaders/object_empty_image_frag.glsl b/source/blender/draw/modes/shaders/object_empty_image_frag.glsl new file mode 100644 index 00000000000..eab107354d1 --- /dev/null +++ b/source/blender/draw/modes/shaders/object_empty_image_frag.glsl @@ -0,0 +1,21 @@ + +flat in vec4 finalColor; + +#ifndef USE_WIRE +in vec2 texCoord_interp; +#endif + +out vec4 fragColor; + +#ifndef USE_WIRE +uniform sampler2D image; +#endif + +void main() +{ +#ifdef USE_WIRE + fragColor = finalColor; +#else + fragColor = finalColor * texture(image, texCoord_interp); +#endif +} |