Fix T70106 Objects with multiple materials are not displaying correctly
Seems to be an issue with OSX and loading objects matrices from uniform buffers. Using legacy path for that reason.
This commit is contained in:
parent
12688a6636
commit
c601839176
Notes:
blender-bot
2023-02-14 10:04:50 +01:00
Referenced by issue #71147, 2.81 & 2.82 Eevee stops rendering in Rendered and Look Dev modes in viewports (macOS) Referenced by issue #70713, Viewport and Icons disappear after recent commit rBc6018391765c Referenced by issue #70106, Objects with multiple materials are not displaying correctly - transparent faces
|
@ -71,7 +71,7 @@ flat in int resourceIDFrag;
|
|||
# define resource_id resourceIDFrag
|
||||
#endif
|
||||
|
||||
#if !defined(GPU_INTEL) && !defined(GPU_DEPRECATED_AMD_DRIVER)
|
||||
#if !defined(GPU_INTEL) && !defined(GPU_DEPRECATED_AMD_DRIVER) && !defined(OS_MAC)
|
||||
struct ObjectMatrices {
|
||||
mat4 drw_modelMatrix;
|
||||
mat4 drw_modelMatrixInverse;
|
||||
|
@ -88,6 +88,8 @@ layout(std140) uniform modelBlock
|
|||
#else /* GPU_INTEL */
|
||||
/* Intel GPU seems to suffer performance impact when the model matrix is in UBO storage.
|
||||
* So for now we just force using the legacy path. */
|
||||
/* Note that this is also a workaround of a problem on osx (amd or nvidia)
|
||||
* and older amd driver on windows. */
|
||||
uniform mat4 ModelMatrix;
|
||||
uniform mat4 ModelMatrixInverse;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue