Skip to content

Commit 94e4289

Browse files
authored
Merge pull request #21 from hborchardt/hborchardt/3d_improve_numerical_stability
2 parents 6d261a1 + e9728cd commit 94e4289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pick-vertex.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void main() {
1616
vec3 normal;
1717
vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);
1818
vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);
19-
gl_Position = projection * view * conePosition;
19+
gl_Position = projection * (view * conePosition);
2020
f_id = id;
2121
f_position = position.xyz;
2222
}

0 commit comments

Comments
 (0)