Fix T66008 Viewport: hidden edges are partially visible
This was a regression from 2.79. The zoffset was doubled for some reason.
This commit is contained in:
parent
1715c396e4
commit
7767e080a0
Notes:
blender-bot
2023-02-14 06:17:14 +01:00
Referenced by issue #66008, Viewport: edge drawing artefacts (hidden edges are partially visible)
|
@ -475,6 +475,9 @@ void immDrawPixelsTex_clipping(IMMDrawPixelsTexState *state,
|
|||
|
||||
float bglPolygonOffsetCalc(const float winmat[16], float viewdist, float dist)
|
||||
{
|
||||
/* Seems like we have a factor of 2 more offset than 2.79 for some reason. Correct for this. */
|
||||
dist *= 0.5f;
|
||||
|
||||
if (winmat[15] > 0.5f) {
|
||||
#if 1
|
||||
return 0.00001f * dist * viewdist; // ortho tweaking
|
||||
|
|
Loading…
Reference in New Issue