raycast.vs 827 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.

=============================================================================*/
Michele Bosi's avatar
Michele Bosi committed
14 15 16

#version 150 compatibility

17
#pragma VL include /vivid/glsl/uniforms.glsl
Michele Bosi's avatar
Michele Bosi committed
18 19 20 21 22 23

out vec3 CP; // camera-space vertex
out vec3 OP; // object-space vertex

void main()
{
24
    gl_Position = vl_ModelViewProjectionMatrix * gl_Vertex;
Michele Bosi's avatar
Michele Bosi committed
25
    gl_TexCoord[0] = gl_MultiTexCoord0;
26
    CP = (vl_ModelViewMatrix * gl_Vertex).xyz;
Michele Bosi's avatar
Michele Bosi committed
27 28
    OP = gl_Vertex.xyz;
}