diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-05-19 18:02:32 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-05-19 18:09:12 +0300 |
commit | 648f2a61ada53e07162efcf117e8b0269a55f5a8 (patch) | |
tree | bc80c48cb2d277a79ba62f800e5122b6615c811d /source/blender/gpu/shaders/gpu_shader_image_color_frag.glsl | |
parent | fa47437426b8e4d72d15bcf3517b31c4202c095c (diff) |
OpenGL: convert old texture2D calls in built-in shaders
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_image_color_frag.glsl')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_image_color_frag.glsl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_image_color_frag.glsl b/source/blender/gpu/shaders/gpu_shader_image_color_frag.glsl index b94c814672f..ef8935cc7ba 100644 --- a/source/blender/gpu/shaders/gpu_shader_image_color_frag.glsl +++ b/source/blender/gpu/shaders/gpu_shader_image_color_frag.glsl @@ -1,12 +1,11 @@ in vec2 texCoord_interp; out vec4 fragColor; -#define texture2D texture uniform vec4 color; uniform sampler2D image; void main() { - fragColor = texture2D(image, texCoord_interp) * color; + fragColor = texture(image, texCoord_interp) * color; } |