Skip to content

Commit

Permalink
Merge pull request #784 from hobzcalvin/master
Browse files Browse the repository at this point in the history
Fix depthmap shader coloring
  • Loading branch information
alemuntoni authored Aug 26, 2020
2 parents 6b77b61 + 8e52d3c commit 59e1a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distrib/shaders/depthmap.frag
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ void main()
vec4 v = vec4(vpos);
v /= v.w;
float gray = (v.z - zmin) / (zmax - zmin);
gl_FragColor = vec4(gray);
gl_FragColor = vec4(vec3(gray), 1.0);
}

0 comments on commit 59e1a52

Please sign in to comment.