This repository was archived by the owner on Feb 1, 2023. It is now read-only.
Commit cb818f8
committed
Scale clipping planes by overall plot size to accomodate very large/small plots
Kept the same ratio between near and far clipping distances as before to
preserve current depth buffer precision, but skewed it bit more toward the near
clip plane for better zooming in. Can still zoom out plenty far. By the time
you hit the far plane, the plot is so tiny as to be useless anyways.1 parent 5ec24db commit cb818f8
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
187 | 191 | | |
188 | | - | |
| 192 | + | |
189 | 193 | | |
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
193 | | - | |
| 197 | + | |
194 | 198 | | |
195 | 199 | | |
196 | 200 | | |
| |||
0 commit comments