Compare commits

...

1 Commits

Author SHA1 Message Date
Alexander Rose
4beecd2ac2 fix cylinder impostor clipping near camera 2023-05-23 21:02:02 -07:00
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ Note that since we don't clearly distinguish between a public and private interf
## [Unreleased]
- Optimize inter unit bond compute
- Fix cylinder impostor clipping near camera (#831)
## [v3.35.0] - 2023-05-14

View File

@@ -72,7 +72,7 @@ void main() {
gl_Position = uProjection * mvPosition;
if (gl_Position.z < -gl_Position.w) {
mvPosition.z -= 2.0 * (length(vEnd - vStart) + vSize); // avoid clipping
mvPosition.z -= length(vEnd - vStart) + 2.0 * vSize; // avoid clipping
gl_Position.z = (uProjection * mvPosition).z;
}