Skip to content

Commit

Permalink
Merge pull request #974 from DLR-SC/improved_zebra_plots
Browse files Browse the repository at this point in the history
Improved visual quality of zebra stripes
  • Loading branch information
joergbrech authored Nov 21, 2023
2 parents 8652dd7 + b9afb4a commit 7b8fa3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TIGLViewer/shaders/PhongShading-v6.fs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ vec4 computeLighting (in vec3 theNormal,
vec3 v = vec3(0., 0., -1.);

// Direction of the view reflected on the surface
vec3 vReflect = 2. * (dot(Normal, v)*Normal - v);
vec3 vReflect = 2. * (dot(theNormal, v)*theNormal - v);

// normal vector of the light stripe plane
vec3 lightDir = normalize(vec3(0., 1., 0.));
Expand Down
2 changes: 1 addition & 1 deletion TIGLViewer/shaders/PhongShading-v7.fs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ vec4 computeLighting (in vec3 theNormal,
vec3 v = vec3(0., 0., -1.);

// Direction of the view reflected on the surface
vec3 vReflect = 2. * (dot(Normal, v)*Normal - v);
vec3 vReflect = 2. * (dot(theNormal, v)*theNormal - v);

// normal vector of the light stripe plane
vec3 lightDir = normalize(vec3(0., 1., 0.));
Expand Down

0 comments on commit 7b8fa3d

Please sign in to comment.