Skip to content

Commit

Permalink
mirror u, not v for top/bottom face
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed Feb 10, 2025
1 parent 05370f7 commit b1bbb47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GLMakie/assets/shader/voxel.vert
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,6 @@ void main() {
} else if (dim == 1) { // y normal, xz planes
o_tex_uv = vec2(-normal_dir, 1.0) * plane_vertex.xz;
} else { // (dim == 2) z normal, xy planes
o_tex_uv = vec2(1.0, normal_dir) * plane_vertex.xy;
o_tex_uv = vec2(normal_dir, 1.0) * plane_vertex.xy;
}
}
2 changes: 1 addition & 1 deletion WGLMakie/assets/voxel.vert
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,6 @@ void main() {
} else if (dim == 1) { // y normal, xz planes
o_tex_uv = vec2(-normal_dir, 1.0) * plane_vertex.xz;
} else { // (dim == 2) z normal, xy planes
o_tex_uv = vec2(1.0, normal_dir) * plane_vertex.xy;
o_tex_uv = vec2(normal_dir, 1.0) * plane_vertex.xy;
}
}

0 comments on commit b1bbb47

Please sign in to comment.