mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-16 18:59:48 +12:00
enable blending
This commit is contained in:
parent
4b00041748
commit
e653d2f6f7
1 changed files with 5 additions and 0 deletions
|
@ -105,6 +105,11 @@ void RendererMTL::initGraphicsContext(SDL_Window* window) {
|
|||
// HACK
|
||||
auto* drawColorAttachment = drawPipelineDescriptor->colorAttachments()->object(0);
|
||||
drawColorAttachment->setPixelFormat(topScreenTexture->pixelFormat());
|
||||
drawColorAttachment->setBlendingEnabled(true);
|
||||
drawColorAttachment->setSourceRGBBlendFactor(MTL::BlendFactorSourceAlpha);
|
||||
drawColorAttachment->setDestinationRGBBlendFactor(MTL::BlendFactorOneMinusSourceAlpha);
|
||||
drawColorAttachment->setSourceAlphaBlendFactor(MTL::BlendFactorSourceAlpha);
|
||||
drawColorAttachment->setDestinationAlphaBlendFactor(MTL::BlendFactorOneMinusSourceAlpha);
|
||||
|
||||
// -------- Vertex descriptor --------
|
||||
MTL::VertexDescriptor* vertexDescriptor = MTL::VertexDescriptor::alloc()->init();
|
||||
|
|
Loading…
Add table
Reference in a new issue