4 * Copyright (C) 2010 - 2016 Leonid Kostrykin
6 * Chair of Medical Engineering (mediTEC)
7 * RWTH Aachen University
13 * Copyright (C) 2021 - 2025 Leonid Kostrykin
17uniform sampler2D labelMap;
21in vec2 textureCoordinates;
23layout( location = 0 ) out vec4 _gl_FragColor;
26// ----------------------------------------------------------------------------------
28// ----------------------------------------------------------------------------------
32 vec2 tc = textureCoordinates;
35 = abs( texture( labelMap, vec2( tc.x - steps.x, tc.y ) ).r - texture( labelMap, vec2( tc.x + steps.x, tc.y ) ).r )
36 + abs( texture( labelMap, vec2( tc.x, tc.y - steps.y ) ).r - texture( labelMap, vec2( tc.x, tc.y + steps.y ) ).r );
40 _gl_FragColor = color;