Commit 3563c737 authored by Ken Martin's avatar Ken Martin
Browse files

fixed problems with specularities

parent 48409ded
...@@ -67,7 +67,8 @@ void vtkSbrCamera::Render(vtkCamera *cam, vtkSbrRenderer *ren) ...@@ -67,7 +67,8 @@ void vtkSbrCamera::Render(vtkCamera *cam, vtkSbrRenderer *ren)
float vdc_vals[6]; float vdc_vals[6];
fd = ren->GetFd(); fd = ren->GetFd();
vtkMatrix4x4 matrix; vtkMatrix4x4 matrix;
float *pos;
// get the background color // get the background color
background = ren->GetBackground(); background = ren->GetBackground();
// get size info // get size info
...@@ -77,7 +78,7 @@ void vtkSbrCamera::Render(vtkCamera *cam, vtkSbrRenderer *ren) ...@@ -77,7 +78,7 @@ void vtkSbrCamera::Render(vtkCamera *cam, vtkSbrRenderer *ren)
// find out if we should stereo render // find out if we should stereo render
stereo = cam->GetStereo(); stereo = cam->GetStereo();
// set this renderer's viewport, must turn off z-buffering when changing // set this renderer's viewport, must turn off z-buffering when changing
// viewport // viewport
hidden_surface(fd, FALSE, FALSE); hidden_surface(fd, FALSE, FALSE);
...@@ -183,5 +184,8 @@ void vtkSbrCamera::Render(vtkCamera *cam, vtkSbrRenderer *ren) ...@@ -183,5 +184,8 @@ void vtkSbrCamera::Render(vtkCamera *cam, vtkSbrRenderer *ren)
// insert model transformation // insert model transformation
view_matrix3d(fd, (float (*)[4])(matrix[0]),REPLACE_VW); view_matrix3d(fd, (float (*)[4])(matrix[0]),REPLACE_VW);
pos = cam->GetPosition();
viewpoint(fd,POSITIONAL,pos[0],pos[1],pos[2]);
clip_depth(fd,0.0,1.0); clip_depth(fd,0.0,1.0);
} }
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