OSX specific: Fixed darker colors of objects inside multi-material gizmo on macOS running on Arm64 CPU.

For Apple's on Arm CPU computed triangle normals inside fragment shader using dFdx and dFdy has the opposite direction. Because of this, objects had darker colors inside the multi-material gizmo.
Based on https://stackoverflow.com/a/66206648, the similar behavior was also spotted on some other devices with Arm CPU.
This commit is contained in:
Lukáš Hejl 2021-08-02 14:03:17 +02:00
parent ab9dfb7932
commit bad51cdb52
4 changed files with 61 additions and 4 deletions

View file

@ -28,6 +28,12 @@ enum class PlatformFlavor
WSL2,
// For Platform::BSDUnix
OpenBSD,
// For Platform::OSX
GenericOSX,
// For Apple's on Intel X86 CPU
OSXOnX86,
// For Apple's on Arm CPU
OSXOnArm,
};
// To be called on program start-up.