bradleyq / stable_player_display

Creative Commons Zero v1.0 Universal
82 stars 2 forks source link

Inventory player model becoming invisible when the player's camera is pointing downward #2

Closed Oranamous closed 1 year ago

Oranamous commented 1 year ago

Likely due to the fact that IViewRotMat is the same in gui as in the world, the fix is simple. Change line 79 in the vertex shader from: if (dim.x != 64 || dim.y != 64) { To: if (ProjMat[3][2] == -2.0 || dim.x != 64 || dim.y != 64) { This fixed the issue on my end and doesn't appear to cause any additional bugs.

bradleyq commented 1 year ago

I do not repro this but this is a good addition anyway. resloved.