[PICA] Add blending, proper toggle between vertex colour & tex

This commit is contained in:
wheremyfoodat 2023-02-28 02:40:59 +02:00
parent 060717bea6
commit 3912fd4779
3 changed files with 88 additions and 8 deletions

View file

@ -23,7 +23,10 @@ class Renderer {
OpenGL::VertexArray vao;
OpenGL::VertexBuffer vbo;
GLint alphaControlLoc = -1;
GLint texUnitConfigLoc = -1;
u32 oldAlphaControl = 0;
u32 oldTexUnitConfig = 0;
SurfaceCache<DepthBuffer, 10> depthBufferCache;
SurfaceCache<ColourBuffer, 10> colourBufferCache;
@ -74,5 +77,7 @@ public:
void setColourBufferLoc(u32 loc) { colourBufferLoc = loc; }
void setDepthBufferLoc(u32 loc) { depthBufferLoc = loc; }
void setupBlending();
static constexpr u32 vertexBufferSize = 0x1500;
};