outline3d.fs 680 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/*=============================================================================

  vlVivid is part of NifTK: A software platform for medical image computing.

  Copyright (c) University College London (UCL). All rights reserved.

  This software is distributed WITHOUT ANY WARRANTY; without even
  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  PURPOSE.

  See NifTK license for details.

=============================================================================*/
14 15 16

#version 150 compatibility

17
#pragma VL include /vivid/glsl/uniforms.glsl
18

19 20 21 22 23
in vec4 Color;

void main()
{
    gl_FragColor.rgb = Color.rgb;
24
    gl_FragColor.a = Color.a * vl_Vivid.alpha;
25
}