mirror of
https://github.com/molstar/molstar.git
synced 2026-06-04 21:34:23 +08:00
Compare commits
1 Commits
master
...
cylinder-c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4beecd2ac2 |
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user