fixed plane normal issue
@@ -990,7 +990,7 @@ class VolumeVisual(Visual):
'''
clip_template = '''
vec3 relative_vec{idx} = loc - ( u_clipping_plane_pos{idx} / vol_shape );
- float is_shown{idx} = dot(relative_vec{idx}, u_clipping_plane_norm{idx});
+ float is_shown{idx} = dot(relative_vec{idx}, (u_clipping_plane_norm{idx} * vol_shape));
is_shown = min(is_shown{idx}, is_shown);
'''
all_vars = []
