From 8adec78ca574f09242aa4588ad04f498f1e074aa Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 17 May 2017 10:46:42 +1000 Subject: Cleanup: remove GLSL version checks --- .../gpu/shaders/gpu_shader_simple_lighting_frag.glsl | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'source/blender/gpu/shaders/gpu_shader_simple_lighting_frag.glsl') diff --git a/source/blender/gpu/shaders/gpu_shader_simple_lighting_frag.glsl b/source/blender/gpu/shaders/gpu_shader_simple_lighting_frag.glsl index 4eacd08d5af..4d7131c4eb1 100644 --- a/source/blender/gpu/shaders/gpu_shader_simple_lighting_frag.glsl +++ b/source/blender/gpu/shaders/gpu_shader_simple_lighting_frag.glsl @@ -4,20 +4,12 @@ uniform vec4 color; #endif uniform vec3 light; -#if __VERSION__ == 120 - varying vec3 normal; +in vec3 normal; #ifdef USE_INSTANCE_COLOR - varying vec4 finalColor; -#endif - #define fragColor gl_FragColor -#else - in vec3 normal; -#ifdef USE_INSTANCE_COLOR - flat in vec4 finalColor; - #define color finalColor -#endif - out vec4 fragColor; +flat in vec4 finalColor; +# define color finalColor #endif +out vec4 fragColor; void main() { -- cgit v1.2.3