mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 21:05:50 +12:00
[PICA] Add blending, proper toggle between vertex colour & tex
This commit is contained in:
parent
060717bea6
commit
3912fd4779
3 changed files with 88 additions and 8 deletions
|
@ -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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue