Skip to content

Commit

Permalink
make box-mode point cloud shader lighter on top than bottom (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebot committed Sep 7, 2023
1 parent ca135ec commit f0b3053
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rviz_rendering/ogre_media/materials/glsl120/nogp/box.frag
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ void main()
float ay;
float l;

if ( gl_TexCoord[0].z < -0.4999 )
if ( gl_TexCoord[0].z > 0.4999 )
{
ax = gl_TexCoord[0].x;
ay = gl_TexCoord[0].y;
l = lightness[0];
}
else if ( gl_TexCoord[0].z > 0.4999 )
else if ( gl_TexCoord[0].z < -0.4999 )
{
ax = gl_TexCoord[0].x;
ay = gl_TexCoord[0].y;
Expand Down

0 comments on commit f0b3053

Please sign in to comment.