Commit 67cf10f
committed
vs_CellFace: Add log depth hook to fix cell edge geometry and mesh lines
vs_CellFace.glsl and vs_2dTextureCellFace.glsl were missing the
calcLogDepth() call after setting gl_Position. This left v_logz
undefined, causing fs_Standard's applyLogDepth() to write garbage
gl_FragDepth values. Side faces disappeared and mesh lines were
invisible because their log depth values failed the LEQUAL depth
test against the incorrect surface depths.1 parent 6a9b33a commit 67cf10f
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
129 | 132 | | |
130 | 133 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
180 | 183 | | |
181 | 184 | | |
0 commit comments