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

fixed problems with specularities

parent 48409ded
...@@ -67,6 +67,7 @@ void vtkSbrCamera::Render(vtkCamera *cam, vtkSbrRenderer *ren) ...@@ -67,6 +67,7 @@ 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();
...@@ -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