diff options
-rw-r--r-- | source/blender/draw/intern/shaders/common_pointcloud_lib.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/shaders/common_pointcloud_lib.glsl b/source/blender/draw/intern/shaders/common_pointcloud_lib.glsl index f007a8c2322..74b989441a2 100644 --- a/source/blender/draw/intern/shaders/common_pointcloud_lib.glsl +++ b/source/blender/draw/intern/shaders/common_pointcloud_lib.glsl @@ -12,7 +12,7 @@ in vec3 nor; mat3 pointcloud_get_facing_matrix(vec3 p) { mat3 facing_mat; - facing_mat[2] = normalize(ViewMatrixInverse[3].xyz - p); + facing_mat[2] = cameraVec(p); facing_mat[1] = normalize(cross(ViewMatrixInverse[0].xyz, facing_mat[2])); facing_mat[0] = cross(facing_mat[1], facing_mat[2]); return facing_mat; |