Commit 85240e2f authored by Aashish Chaudhary's avatar Aashish Chaudhary

Fixed variable not found

Change-Id: I8657d2e2e1ec581a692c456ae214e7ec573e213b
parent 7a40c5e8
......@@ -1995,8 +1995,8 @@ void vtkOpenGLGPUVolumeRayCastMapper::GPURender(vtkRenderer* ren,
std::cerr << "Data changed " << input->GetMTime() << std::endl;
// Update the volume if needed
// if (input != this->Impl->PrevInput)
// {
if (input != this->Impl->PrevInput)
{
input->GetDimensions(this->Impl->Dimensions);
// Update bounds, data, and geometry
......@@ -2004,7 +2004,7 @@ void vtkOpenGLGPUVolumeRayCastMapper::GPURender(vtkRenderer* ren,
this->Impl->LoadVolume(input, scalars);
this->Impl->LoadMask(input, this->MaskInput,
this->Impl->Extents, vol);
// }
}
// Mask
vtkVolumeMask* mask = 0;
......@@ -2042,9 +2042,7 @@ void vtkOpenGLGPUVolumeRayCastMapper::GPURender(vtkRenderer* ren,
this->Impl->ShaderBuildTime.GetMTime() ||
this->GetMTime() > this->Impl->ShaderBuildTime.GetMTime() ||
ren->GetActiveCamera()->GetParallelProjection() !=
this->Impl->LastProjectionParallel ||
ren->GetMTime() > this->Impl->ShaderBuildTime.GetMTime()
)
this->Impl->LastProjectionParallel)
{
this->Impl->LastProjectionParallel =
ren->GetActiveCamera()->GetParallelProjection();
......
......@@ -122,6 +122,7 @@ namespace vtkvolume
uniform mat4 m_inverse_modelview_matrix; \n\
uniform mat4 m_texture_dataset_matrix; \n\
uniform mat4 m_inverse_texture_dataset_matrix; \n\
uniform mat4 m_texture_to_eye_it; \n\
\n\
// Ray step size \n\
uniform vec3 m_cell_step; \n\
......@@ -408,7 +409,7 @@ namespace vtkvolume
{ \n\
final_color += m_specular * pow(n_dot_h, m_shininess); \n\
} \n\
final_color = clamp(final_colvtkOpenGLGPUVolumeRayCastMapperor, vec3(0.0), vec3(1.0)); \n\
final_color = clamp(final_color, vec3(0.0), vec3(1.0)); \n\
if (grad.w >= 0.0)\n\
{\n\
color.a = color.a * computeGradientOpacity(grad); \n\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment