File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 2424#include " hw/aica/dsp.h"
2525#include " hw/pvr/ta.h"
2626#include " hw/pvr/pvr_mem.h"
27+ #include " rend/sorter.h"
2728
2829bool MetalRenderer::Init ()
2930{
550551 palTsp.ClampV = 1 ;
551552 [renderEncoder setFragmentSamplerState: samplers.GetSampler (palTsp) atIndex: 3 ];
552553
554+ setFirstProvokingVertex (pvrrc);
555+
553556 // Upload vertex and index buffers
554557 VertexShaderUniforms vtxUniforms {};
555558 vtxUniforms.ndcMat = matrices.GetNormalMatrix ();
Original file line number Diff line number Diff line change 1818
1919#include < cstring>
2020
21- // Vulkan and DirectX use the color values of the first vertex for flat shaded triangle strips.
21+ // Vulkan, DirectX, and Metal use the color values of the first vertex for flat shaded triangle strips.
2222// On Dreamcast the last vertex is the provoking one so we must copy it onto the first.
2323void setFirstProvokingVertex (rend_context& rendContext)
2424{
You can’t perform that action at this time.
0 commit comments