drwhut / tabletop-club

An open-source platform for playing tabletop games in a physics-based 3D environment for Windows, macOS, and Linux! Made with the Godot Engine.
https://tabletopclub.net
MIT License
1.27k stars 55 forks source link

OSX: Back face culling of glTF objects necessary, but causes visual glitches. #92

Open drwhut opened 2 years ago

drwhut commented 2 years ago

Describe the bug Due to the fact that glTF objects don't render their back faces on OSX, these objects may look strange when viewing them from certain angles.

To Reproduce Steps to reproduce the behavior:

  1. Enter the game.
  2. Spawn the "Purse" container via the objects menu.
  3. See that the back of the purse is not rendered.

Expected behavior Both front and back faces of objects should be rendered.

Screenshots 2022-7-18-14-2-53

Environment OS: macOS 10.12 GPU: Intel UHD Graphics 617

Version master

Additional context The reason back face culling occurs on OSX is because of the commit 6fbef7ea9f72d110f79419ec9bb9a37e60ddc6d4, which was a workaround to this Godot issue: godotengine/godot#39936 - if the Godot issue is resolved, then this issue can be resolved by removing the workaround.